diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 35 |
1 files changed, 19 insertions, 16 deletions
@@ -1,26 +1,29 @@ -# Initial commit: Alexey Andreyev aa13q at ya.ru +# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu > +# Contributor: Alexey Andreyev aa13q at ya.ru -pkgbase='python-pymantic' -pkgname=('python-pymantic') -_module='pymantic' -pkgver='0.2.5' -pkgrel=1 +pkgname='python-pymantic' +_module="${pkgname#python-}" +pkgver=0.2.5 +pkgrel=2 pkgdesc="Semantic Web and RDF library for Python" -url="https://github.com/norcalrdf/pymantic/" -depends=('python' 'python-requests' 'python-lxml' 'python-pytz' 'python-rdflib' 'python-lark-parser' 'python-pyld' 'python-lepl') -makedepends=('python-setuptools') -license=('BSD') arch=('any') -source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz") -sha256sums=('119361a60d811aea6f57faf05f9aebc787e37244e3c8e9c922e9621b2a425dcf') +url="https://pypi.org/project/${_module}/${pkgver}" +license=('BSD') +depends=('python' 'python-requests' 'python-lxml' 'python-pytz' 'python-rdflib' 'python-lark-parser' 'python-pyld') +makedepends=('python-setuptools') +_sourcename="${_module}-${pkgver}" +source=("https://files.pythonhosted.org/packages/source/${_module::1}/${_module}/${_sourcename}.tar.gz" + "${_sourcename}-LICENSE::https://github.com/norcalrdf/${_module}/raw/${pkgver}/LICENSE") +sha256sums=('119361a60d811aea6f57faf05f9aebc787e37244e3c8e9c922e9621b2a425dcf' + 'c5a804cb694b36e4604f1edaf496ad7aaa93690d27666a6a7887354ec3a1a884') build() { - cd "${srcdir}/${_module}-${pkgver}" - python setup.py build + cd "${_sourcename}" + python setup.py build --executable='/usr/bin/env python' } package() { - depends+=() - cd "${srcdir}/${_module}-${pkgver}" + cd "${_sourcename}" python setup.py install --root="${pkgdir}" --optimize=1 --skip-build + install --verbose -Dm 644 "../${_sourcename}-LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" } |