diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-26 09:55:29 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-09-26 09:55:33 +0000 |
commit | 5cf46f1e998bcd93fa3a982af1000712afbffddd (patch) | |
tree | 675250651af3d1c53f4cafb803006ca48e7c1b54 | |
parent | 829237f46355d506ea22661e8d55049997abc372 (diff) | |
download | aports-5cf46f1e998bcd93fa3a982af1000712afbffddd.tar.bz2 aports-5cf46f1e998bcd93fa3a982af1000712afbffddd.tar.xz |
community/py3-dialog: added check(), modernize APKBUILD
-rw-r--r-- | community/py3-dialog/APKBUILD | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/community/py3-dialog/APKBUILD b/community/py3-dialog/APKBUILD index f4d9b05b0c..3e1d310173 100644 --- a/community/py3-dialog/APKBUILD +++ b/community/py3-dialog/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=py3-dialog pkgver=3.4.0 -pkgrel=0 +pkgrel=1 pkgdesc="A Python3 interface to the UNIX dialog utility and mostly-compatible programs" url="http://pythondialog.sourceforge.net/" arch="noarch" @@ -10,17 +10,21 @@ license="LGPL" depends="dialog" makedepends="python3-dev binutils" source="http://downloads.sourceforge.net/project/pythondialog/pythondialog/${pkgver}/python3-pythondialog-${pkgver}.tar.bz2" - builddir="$srcdir"/pythondialog-$pkgver build() { cd "$builddir" - python3 setup.py build || return 1 + python3 setup.py build +} + +check() { + cd "$builddir" + python3 setup.py check } package() { cd "$builddir" - python3 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + python3 setup.py install --prefix=/usr --root="$pkgdir" } md5sums="3d5ebc33e85f6313964f5eef720dab19 python3-pythondialog-3.4.0.tar.bz2" |