diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-06 22:01:47 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-11-06 22:01:47 +0100 |
commit | 57116e26fd088179f46fd1f50d990e9e8781e170 (patch) | |
tree | 177109a366e8a193325fcc445501ea05c2f8f60a | |
parent | 36660af782bfdc13ae57f3fc408cde05d53c2e64 (diff) | |
download | aports-57116e26fd088179f46fd1f50d990e9e8781e170.tar.bz2 aports-57116e26fd088179f46fd1f50d990e9e8781e170.tar.xz |
main/pyflakes: improve abuild
-rw-r--r-- | main/pyflakes/APKBUILD | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/main/pyflakes/APKBUILD b/main/pyflakes/APKBUILD index 7cb084c550..614e6383d1 100644 --- a/main/pyflakes/APKBUILD +++ b/main/pyflakes/APKBUILD @@ -8,30 +8,17 @@ url="https://github.com/pyflakes/pyflakes" arch="noarch" license="MIT" depends="python2" -depends_dev="" makedepends="python2-dev" -install="" -subpackages="" 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" + cd "$builddir" python2 setup.py build || return 1 } package() { - cd "$_builddir" + cd "$builddir" python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 } |