diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2015-11-30 13:38:22 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-11-30 13:38:22 +0000 |
commit | 34730307c91910f13938de6698ab3a46c6acbafb (patch) | |
tree | 21ccd39809643591cb1babfbdd4173e371a0c130 /testing/py-vcversioner/APKBUILD | |
parent | 9a48ae74380c6c000ccb078daedbb15d577971f8 (diff) | |
download | aports-34730307c91910f13938de6698ab3a46c6acbafb.tar.bz2 aports-34730307c91910f13938de6698ab3a46c6acbafb.tar.xz |
testing/py-vcversioner: new aport
Diffstat (limited to 'testing/py-vcversioner/APKBUILD')
-rw-r--r-- | testing/py-vcversioner/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py-vcversioner/APKBUILD b/testing/py-vcversioner/APKBUILD new file mode 100644 index 0000000000..5b812d53f0 --- /dev/null +++ b/testing/py-vcversioner/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Francesco Colista <fcolista@alpinelinux.org> +# Maintainer: Francesco Colista <fcolista@alpinelinux.org> +pkgname=py-vcversioner +_pkgname=vcversioner +pkgver=2.14.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="" +source="https://pypi.python.org/packages/source/v/$_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 +} + +build() { + cd "$_builddir" + python setup.py build || return 1 +} + +package() { + cd "$_builddir" + python setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +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" |