diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-23 00:55:30 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-11-23 00:55:30 +0000 |
commit | 930ee52dac192d9d3a404820855f8c9cd7a98c56 (patch) | |
tree | 53485b3ad3e0f747a489fc4d28a43b400e50e7d8 | |
parent | 37539843c397679ac01c8f590d634db31f18be49 (diff) | |
download | alpine_aports-930ee52dac192d9d3a404820855f8c9cd7a98c56.tar.bz2 alpine_aports-930ee52dac192d9d3a404820855f8c9cd7a98c56.tar.xz alpine_aports-930ee52dac192d9d3a404820855f8c9cd7a98c56.zip |
community/py-argh: modernize and add check
-rw-r--r-- | community/py-argh/APKBUILD | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/community/py-argh/APKBUILD b/community/py-argh/APKBUILD index b36232081a..13aaa1580e 100644 --- a/community/py-argh/APKBUILD +++ b/community/py-argh/APKBUILD | |||
@@ -3,7 +3,7 @@ | |||
3 | pkgname=py-argh | 3 | pkgname=py-argh |
4 | _pkgname=argh | 4 | _pkgname=argh |
5 | pkgver=0.26.2 | 5 | pkgver=0.26.2 |
6 | pkgrel=0 | 6 | pkgrel=1 |
7 | pkgdesc="A Python argparse wrapper" | 7 | pkgdesc="A Python argparse wrapper" |
8 | url="https://github.com/neithere/argh/" | 8 | url="https://github.com/neithere/argh/" |
9 | arch="noarch" | 9 | arch="noarch" |
@@ -15,27 +15,21 @@ install="" | |||
15 | subpackages="" | 15 | subpackages="" |
16 | source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" | 16 | source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz" |
17 | 17 | ||
18 | _builddir="$srcdir"/$_pkgname-$pkgver | 18 | builddir="$srcdir/$_pkgname-$pkgver" |
19 | prepare() { | ||
20 | local i | ||
21 | cd "$_builddir" | ||
22 | for i in $source; do | ||
23 | case $i in | ||
24 | *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; | ||
25 | esac | ||
26 | done | ||
27 | } | ||
28 | 19 | ||
29 | build() { | 20 | build() { |
30 | cd "$_builddir" | 21 | cd "$builddir" |
31 | python2 setup.py build || return 1 | 22 | python2 setup.py build |
23 | } | ||
24 | |||
25 | check() { | ||
26 | cd "$builddir" | ||
27 | python2 setup.py test | ||
32 | } | 28 | } |
33 | 29 | ||
34 | package() { | 30 | package() { |
35 | cd "$_builddir" | 31 | cd "$builddir" |
36 | python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 | 32 | python2 setup.py install --prefix=/usr --root="$pkgdir" |
37 | } | 33 | } |
38 | 34 | ||
39 | md5sums="edda25f3f0164a963dd89c0e3c619973 argh-0.26.2.tar.gz" | ||
40 | sha256sums="e9535b8c84dc9571a48999094fda7f33e63c3f1b74f3e5f3ac0105a58405bb65 argh-0.26.2.tar.gz" | ||
41 | sha512sums="90382900d5cec9629dacb4459a2c9491d1425b66fa3f90d7cbf511dec846a99dbb9424f3e08f0c006da48fbf9c067078705be70b314700541fd800630e4b1707 argh-0.26.2.tar.gz" | 35 | sha512sums="90382900d5cec9629dacb4459a2c9491d1425b66fa3f90d7cbf511dec846a99dbb9424f3e08f0c006da48fbf9c067078705be70b314700541fd800630e4b1707 argh-0.26.2.tar.gz" |