Commit 152f7de5 authored by Jakub Jirutka's avatar Jakub Jirutka

testing/py-netifaces: improve abuild

parent bd7bbc7d
......@@ -11,17 +11,7 @@ license="MIT"
makedepends="python2-dev python3-dev py-setuptools linux-headers"
subpackages="py2-${pkgname#py-}:_py2 py3-${pkgname#py-}:_py3"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
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"
......@@ -45,7 +35,6 @@ _py3() {
_py() {
local python="$1"
pkgdesc="$pkgdesc (for $python)"
depends="$depends $python"
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment