summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO7
-rw-r--r--PKGBUILD23
2 files changed, 17 insertions, 13 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 5117aca6c24..c2e94892b64 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,15 @@
pkgbase = python-vatnumber
pkgdesc = Python module to validate VAT numbers
pkgver = 1.2
- pkgrel = 2
- url = https://pypi.org/project/vatnumber/
+ pkgrel = 3
+ url = https://code.google.com/archive/p/vatnumber
arch = any
license = GPL3
makedepends = python-setuptools
- depends = python
depends = python-stdnum
optdepends = python-suds: SOAP client for European Union's Vat information exchange service
source = https://files.pythonhosted.org/packages/d7/7c/869b59cd9cb6ed1057372cb704a3b86688ae8c12cfc7fcaedbc1424f5e7f/vatnumber-1.2.tar.gz
- md5sums = 3b1541be3834a865f6f7bcce809ffb25
+ sha256sums = 4e9e9cabcff6076d8deb8a347edfd5d0ab8cab1ed344fdbe5dd4a6110a2f2c7b
pkgname = python-vatnumber
diff --git a/PKGBUILD b/PKGBUILD
index e8fb5f0f293..5deb981a5f1 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,23 +1,28 @@
-# Maintainer: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
+# Maintainer: Anton Kudelin <kudelin at protonmail dot com>
+# Contributor: Sebastiaan Lokhorst <sebastiaanlokhorst@gmail.com>
# Contributor: M0Rf30
# Contributor: Gour <gour@gour-nitai.com>
-pkgname=python-vatnumber
_pkgname=vatnumber
+pkgname=python-$_pkgname
pkgver=1.2
-pkgrel=2
+pkgrel=3
pkgdesc="Python module to validate VAT numbers"
arch=('any')
-url="https://pypi.org/project/vatnumber/"
+url="https://code.google.com/archive/p/vatnumber"
license=('GPL3')
-depends=('python' 'python-stdnum')
+depends=('python-stdnum')
makedepends=('python-setuptools')
optdepends=("python-suds: SOAP client for European Union's Vat information exchange service")
-
source=("https://files.pythonhosted.org/packages/d7/7c/869b59cd9cb6ed1057372cb704a3b86688ae8c12cfc7fcaedbc1424f5e7f/$_pkgname-$pkgver.tar.gz")
-md5sums=('3b1541be3834a865f6f7bcce809ffb25')
+sha256sums=('4e9e9cabcff6076d8deb8a347edfd5d0ab8cab1ed344fdbe5dd4a6110a2f2c7b')
+
+build() {
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py build
+}
package() {
- cd $srcdir/$_pkgname-$pkgver
- python setup.py install --root=$pkgdir
+ cd "$srcdir/$_pkgname-$pkgver"
+ python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
}