summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO11
-rw-r--r--PKGBUILD30
2 files changed, 21 insertions, 20 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 00df7c28223..beb20d58462 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,15 +1,14 @@
-# Generated by mksrcinfo v8
-# Sun Sep 4 21:02:03 UTC 2016
pkgbase = pyg3t
pkgdesc = Python gettext Translation Toolkit
pkgver = 0.5.0
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/pyg3t/pyg3t
arch = any
- license = GPL
- depends = python2
+ license = GPL3
+ checkdepends = python-pytest
+ depends = python
source = pyg3t-0.5.0.tar.gz::https://github.com/pyg3t/pyg3t/archive/0.5.0.tar.gz
- md5sums = 89b67b54a08a7bd465d9ed69fd11dcb2
+ sha256sums = 45bcdd4c8ee01491cc66f3e42c632245e9572e7fd1f2ae184fa1839db3e809ba
pkgname = pyg3t
diff --git a/PKGBUILD b/PKGBUILD
index 74f3eac31ab..5842a503dd6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -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
+}