diff options
author | Leo <thinkabit.ukim@gmail.com> | 2019-05-02 05:02:22 -0300 |
---|---|---|
committer | prspkt <prspkt@protonmail.com> | 2019-05-06 12:39:57 +0300 |
commit | 17b2b201efbf7e5a50395cdf62531ee6222a3127 (patch) | |
tree | 3fae23c591d1826a7592991be67379e5a48dee38 /testing/py3-vatnumber | |
parent | 1263af19071d01c2c4337ac726c600061a498999 (diff) | |
download | aports-17b2b201efbf7e5a50395cdf62531ee6222a3127.tar.bz2 aports-17b2b201efbf7e5a50395cdf62531ee6222a3127.tar.xz |
testing/py3-vatnumber: rename from py-vatnumber
Diffstat (limited to 'testing/py3-vatnumber')
-rw-r--r-- | testing/py3-vatnumber/APKBUILD | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/testing/py3-vatnumber/APKBUILD b/testing/py3-vatnumber/APKBUILD new file mode 100644 index 0000000000..5817d70c5a --- /dev/null +++ b/testing/py3-vatnumber/APKBUILD @@ -0,0 +1,41 @@ +# Contributor: Fabian Affolter <fabian@affolter-engineering.ch> +# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch> +pkgname=py-vatnumber +_pkgname=vatnumber +pkgver=1.2 +pkgrel=1 +pkgdesc="A Python module to validate VAT numbers" +url="https://code.google.com/p/vatnumber/" +arch="noarch" +license="GPL-3.0-or-later" +depends="python2" +depends_dev="" +makedepends="python2-dev py-setuptools" +install="" +subpackages="" +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 +} + +build() { + cd "$_builddir" + python2 setup.py build || return 1 +} + +package() { + cd "$_builddir" + python2 setup.py install --prefix=/usr --root="$pkgdir" || return 1 +} + +md5sums="3b1541be3834a865f6f7bcce809ffb25 vatnumber-1.2.tar.gz" +sha256sums="4e9e9cabcff6076d8deb8a347edfd5d0ab8cab1ed344fdbe5dd4a6110a2f2c7b vatnumber-1.2.tar.gz" +sha512sums="708b73f8d059638c165663f8b36dd8602c0aa857be456e50690dd61c09b9a8a2e560bf2a3ed89a790670c93f5b84c5a391cef748bebf0fa978a6fe5e319a541f vatnumber-1.2.tar.gz" |