aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-11-09 20:43:23 +0100
committerJakub Jirutka <jakub@jirutka.cz>2016-11-09 20:43:23 +0100
commit9394536c6cfe3704ad390e0b7efb28c79b86c3f2 (patch)
tree3a60f3f11550692153d2449139278a42f28ec164
parentfb32ad0e8aee1003d5c6fba27b27bd170346e588 (diff)
downloadaports-9394536c6cfe3704ad390e0b7efb28c79b86c3f2.tar.bz2
aports-9394536c6cfe3704ad390e0b7efb28c79b86c3f2.tar.xz
community/py-batinfo: remove files in /usr/share/doc
They cause conflicts between py2 and py3 subpackage.
-rw-r--r--community/py-batinfo/APKBUILD5
1 files changed, 3 insertions, 2 deletions
diff --git a/community/py-batinfo/APKBUILD b/community/py-batinfo/APKBUILD
index 30055d074e..00cf478c2f 100644
--- a/community/py-batinfo/APKBUILD
+++ b/community/py-batinfo/APKBUILD
@@ -3,7 +3,7 @@
pkgname=py-batinfo
_pkgname=batinfo
pkgver=0.3
-pkgrel=1
+pkgrel=2
pkgdesc="A simple Python lib to retreive battery information"
url="https://github.com/nicolargo/batinfo"
arch="noarch"
@@ -31,7 +31,8 @@ _py() {
install_if="$pkgname=$pkgver-r$pkgrel $python"
cd "$builddir"
- $python setup.py install --prefix=/usr --root="$subpkgdir"
+ $python setup.py install --prefix=/usr --root="$subpkgdir" || return 1
+ rm -Rf "$subpkgdir"/usr/share/doc/batinfo
}
_py2() {