aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--community/scapy/APKBUILD (renamed from testing/scapy/APKBUILD)25
-rw-r--r--community/scapy/scapy.post-install (renamed from testing/scapy/scapy.post-install)0
2 files changed, 7 insertions, 18 deletions
diff --git a/testing/scapy/APKBUILD b/community/scapy/APKBUILD
index 59556a3cf5..c09d4373eb 100644
--- a/testing/scapy/APKBUILD
+++ b/community/scapy/APKBUILD
@@ -1,39 +1,28 @@
# Contributor: Paul Kilar <pkilar@gmail.com>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=scapy
-pkgver='2.3.2'
+pkgver="2.3.2"
pkgrel=1
pkgdesc="Powerful interactive packet manipulation"
url="http://www.secdev.org/projects/scapy/"
arch="noarch"
license="GPL3+"
depends="python"
-depends_dev=""
-makedepends="$depends_dev python-dev"
+makedepends="python2-dev"
install="$pkgname.post-install"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.zip::https://github.com/secdev/$pkgname/archive/v$pkgver.zip"
-_builddir="$srcdir"/$pkgname-$pkgver
-
-prepare() {
- local i
- cd "$_builddir"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir"/$pkgname-$pkgver
build() {
- cd "$_builddir"
- python setup.py build || return 1
+ cd "$builddir"
+ python2 setup.py build || return 1
}
package() {
- cd "$_builddir"
- python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+ cd "$builddir"
+ python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="06c1be0b261d36907c3ff24fa443b4aa scapy-2.3.2.zip"
diff --git a/testing/scapy/scapy.post-install b/community/scapy/scapy.post-install
index 9f2247aabe..9f2247aabe 100644
--- a/testing/scapy/scapy.post-install
+++ b/community/scapy/scapy.post-install