diff options
author | Rafael Fontenelle | 2021-04-26 23:17:57 -0300 |
---|---|---|
committer | Rafael Fontenelle | 2021-04-26 23:17:59 -0300 |
commit | e5172d64023f5883b1f2ef8c8601f0468a1f93b0 (patch) | |
tree | 45b99e83dcb1dae8f2f0daa57aa0007d5fd79507 /PKGBUILD | |
parent | 3d30b798cc67dfbd79c484c0f1c301bde57773b9 (diff) | |
download | aur-e5172d64023f5883b1f2ef8c8601f0468a1f93b0.tar.gz |
Several improvements
- Change to Python3
- Add check() function
- Change checksum from MD5 to SHA256
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 30 |
1 files changed, 16 insertions, 14 deletions
@@ -2,25 +2,27 @@ pkgname=pyg3t pkgver=0.5.0 -pkgrel=1 +pkgrel=2 pkgdesc="Python gettext Translation Toolkit" arch=(any) url="https://github.com/pyg3t/pyg3t" -license=('GPL') -depends=('python2') +license=('GPL3') +depends=('python') +checkdepends=('python-pytest') source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz") -md5sums=('89b67b54a08a7bd465d9ed69fd11dcb2') +sha256sums=('45bcdd4c8ee01491cc66f3e42c632245e9572e7fd1f2ae184fa1839db3e809ba') -package() { - cd "$srcdir/$pkgname-$pkgver" - - # fix python2 calls - PYTHON_CALLERS="$(grep -R 'python$' --exclude-dir=build | cut -d: -f1)" - sed -i -e 's|env python$|env python2|' \ - -e 's|bin/python$|bin/python2|' \ - ${PYTHON_CALLERS} +build() { + cd $pkgname-$pkgver + python setup.py build +} - python2 setup.py install --root="$pkgdir/" --optimize=1 +check() { + cd $pkgname-$pkgver + py.test -vv . } -# vim:set ts=2 sw=2 et: +package() { + cd $pkgname-$pkgver + python setup.py install --root="$pkgdir" --optimize=1 --skip-build +} |