diff options
-rw-r--r-- | PKGBUILD | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -8,7 +8,7 @@ arch=("any") url="http://github.com/defunkt/pystache" license=('MIT') depends=('python-setuptools') -source=("$pkgname-$pkgver.tar.gz::https://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz") +source=("$pkgname-$pkgver.tar.gz::https://github.com/defunkt/$_pkgname/archive/v$pkgver.tar.gz") sha256sums=('f7bbc265fb957b4d6c7c042b336563179444ab313fb93a719759111eabd3b85a') build() { @@ -16,7 +16,19 @@ build() { python setup.py build } +check() { + # This package uses 2to3 to convert itself to Python 3 on the fly + # So we need to jump through some hoops here + rm -rf test_dir + mkdir test_dir + cd "$_pkgname-$pkgver" + python setup.py install --root=../test_dir + PYTHONPATH=../test_dir/usr/lib/python3.7/site-packages/ \ + ../test_dir/usr/bin/pystache-test . +} + package() { cd "$_pkgname-$pkgver" python setup.py install --prefix=/usr --root="$pkgdir" --optimize=1 + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE } |