[arch-commits] Commit in scapy/trunk (PKGBUILD)
Antonio Rojas
arojas at archlinux.org
Sat Nov 9 20:10:22 UTC 2019
Date: Saturday, November 9, 2019 @ 20:10:21
Author: arojas
Revision: 524882
Drop python2
Modified:
scapy/trunk/PKGBUILD
----------+
PKGBUILD | 43 +++++++------------------------------------
1 file changed, 7 insertions(+), 36 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2019-11-09 20:06:55 UTC (rev 524881)
+++ PKGBUILD 2019-11-09 20:10:21 UTC (rev 524882)
@@ -4,7 +4,7 @@
# Contributor: s1gma,shirokuro
pkgbase=scapy
-pkgname=('scapy' 'python-scapy' 'python2-scapy')
+pkgname=('scapy' 'python-scapy')
pkgver=2.4.3
pkgrel=2
pkgdesc='Powerful interactive packet manipulation program written in Python'
@@ -11,37 +11,22 @@
url='http://www.secdev.org/projects/scapy/'
arch=('any')
license=('GPL2')
-makedepends=('tcpdump' 'python2' 'python')
-checkdepends=('python2-cryptography' 'python2-pyx' 'python2-matplotlib'
- 'python-cryptography' 'python-pyx' 'python-matplotlib'
+makedepends=('tcpdump' 'python-setuptools')
+checkdepends=('python-cryptography' 'python-pyx' 'python-matplotlib'
'graphviz' 'sox')
source=(https://github.com/secdev/scapy/archive/v${pkgver}/${pkgname}-${pkgver}.tar.gz)
sha256sums=('6cacd9ebe2beeb06b10ff57bff3632222755e9d62f1b38e71b02edab6e71d776')
sha512sums=('48bf86ed851f4b15d4f3b1e2668f1516fff712b67d709963cb986076cfeec0724e20b400a75368309f3d99a45d7b1082fd049fbb67edef0ab5d838e2ae141e44')
-prepare() {
- cp -a ${pkgbase}-${pkgver}{,-py2}
- cd ${pkgbase}-${pkgver}-py2
- sed -e 's|env python|env python2|g' -i doc/scapy/*.rst run_scapy $(find . -name '*.py')
-}
-
build() {
- (cd ${pkgbase}-${pkgver}-py2
- python2 setup.py build
- )
- (cd ${pkgbase}-${pkgver}
- python setup.py build
- )
+ cd ${pkgbase}-${pkgver}
+ python setup.py build
}
check() {
# Run only main tests, without network access
- (cd ${pkgbase}-${pkgver}-py2/test
- ./run_tests_py2 -K netaccess -F
- )
- (cd ${pkgbase}-${pkgver}/test
- ./run_tests_py3 -K netaccess -F
- )
+ cd ${pkgbase}-${pkgver}/test
+ ./run_tests_py3 -K netaccess -F
}
package_scapy() {
@@ -68,18 +53,4 @@
rm -r "${pkgdir}"{/usr/bin,/usr/share/man}
}
-package_python2-scapy() {
- pkgdesc+=' (library)'
- depends=('tcpdump' 'python2')
- optdepends=('python2-cryptography: WEP, IPsec and SSL/TLS support'
- 'python2-pyx: psdump() and pdfdump() functions'
- 'python2-matplotlib: plotting support'
- 'graphviz: conversations() method support'
- 'sox: for VOIP support')
- cd ${pkgbase}-${pkgver}-py2
- python2 setup.py install -O1 --skip-build --root="${pkgdir}" --prefix=/usr
- install -Dm 644 doc/scapy/*.rst -t "${pkgdir}/usr/share/doc/${pkgname}"
- rm -r "${pkgdir}"{/usr/bin,/usr/share/man}
-}
-
# vim: ts=2 sw=2 et:
More information about the arch-commits
mailing list