diff options
author | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-10-06 13:36:10 +0000 |
---|---|---|
committer | Roberto Oliveira <robertoguimaraes8@gmail.com> | 2017-10-06 13:36:10 +0000 |
commit | c7edb867f8cbddc61a301ce9cd8b759313a530bb (patch) | |
tree | 13704caaaf547a9cd2f434eea4687657b3e1e3db /testing/py-vcversioner/APKBUILD | |
parent | c61d1741d2a00578169dbcdbf3de31a82600ec3c (diff) | |
download | aports-c7edb867f8cbddc61a301ce9cd8b759313a530bb.tar.bz2 aports-c7edb867f8cbddc61a301ce9cd8b759313a530bb.tar.xz |
testing/py-vcversioner: upgrade to 2.16.0.0 and modernize
Diffstat (limited to 'testing/py-vcversioner/APKBUILD')
-rw-r--r-- | testing/py-vcversioner/APKBUILD | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/testing/py-vcversioner/APKBUILD b/testing/py-vcversioner/APKBUILD index 3f464e8457..8a5a96f5b9 100644 --- a/testing/py-vcversioner/APKBUILD +++ b/testing/py-vcversioner/APKBUILD @@ -2,40 +2,25 @@ # Maintainer: Francesco Colista <fcolista@alpinelinux.org> pkgname=py-vcversioner _pkgname=vcversioner -pkgver=2.14.0.0 +pkgver=2.16.0.0 pkgrel=0 pkgdesc="Use version control tags to discover version numbers" url="https://pypi.python.org/pypi/vcversioner" arch="noarch" license="ISC" -depends="" -depends_dev="" -makedepends="$depends_dev py-setuptools" -install="" -subpackages="" +makedepends="py-setuptools" 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" - python2 setup.py build || return 1 + cd "$builddir" + python2 setup.py build } package() { - cd "$_builddir" - python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 + cd "$builddir" + python2 setup.py install --prefix=/usr --root="$pkgdir" } -md5sums="7848a365ced9941053bc25d9a9f8f4b4 vcversioner-2.14.0.0.tar.gz" -sha256sums="acd43686e92e6c8bbeb4f2eef54408567a7adea9692fa72d591eec5357c03b86 vcversioner-2.14.0.0.tar.gz" -sha512sums="0d474910f9d0f0dd0c0d0b824bcdf5da7bbb5d2b55691f18107bb0b8a237213a83d8f51f719d4761e1dae9db70e84ef8c264c388ec1995ed0a55a838575e377e vcversioner-2.14.0.0.tar.gz" +sha512sums="e4e34693aa813e57991eca01d20102bd2e939b536461e2e9e063ac0e3558580e57d7e8d5e08d010690b3c901c97e53f187f20b48520b333eb492ec33e85757d8 vcversioner-2.16.0.0.tar.gz" |