diff options
author | jnanar | 2018-06-03 10:22:42 +0200 |
---|---|---|
committer | jnanar | 2018-06-03 10:22:42 +0200 |
commit | be7b1d9d2ee4e600d62441f154941613281e2f35 (patch) | |
tree | fabd53a44571e833dc67558b82ef2f776ca3d254 | |
parent | 377474e84f717329bf344338cb3890c4b89d7362 (diff) | |
download | aur-be7b1d9d2ee4e600d62441f154941613281e2f35.tar.gz |
Update package to use setup.py for install
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 14 |
2 files changed, 12 insertions, 4 deletions
@@ -1,5 +1,5 @@ pkgbase = sat-templates-hg - pkgver = 0.7.r143.a37d535b7ddd + pkgver = 0.7.r148.a4b6b8b6fc58 pkgrel = 1 url = https://salut-a-toi.org/ arch = any @@ -2,7 +2,7 @@ pkgname=('sat-templates-hg') _realname=sat_templates -pkgver=0.7.r143.a37d535b7ddd +pkgver=0.7.r148.a4b6b8b6fc58 VERSION=0.7 pkgrel=1 url="https://salut-a-toi.org/" @@ -22,6 +22,14 @@ pkgver() { } +build() { + cd "$srcdir/$_realname" + python2 setup.py build + install -dm755 "$srcdir/fakeinstall/" + python2 setup.py install --root="$srcdir/fakeinstall/" --prefix=/usr --optimize=1 +} + + package(){ pkgdesc="sat-templates is a collection of templates for Salut à Toi, the multi-frontends multi-purposes XMPP client (core). For now, it needs to be accessible in the PYTHONPATH" @@ -29,7 +37,7 @@ package(){ cd "$pkgdir" install -dm755 "usr/lib/python2.7/site-packages/$_realname" - cd "$srcdir/$_realname" - cp -rv * "$pkgdir/usr/lib/python2.7/site-packages/$_realname" + cd "$srcdir/fakeinstall/" + mv -v "usr/lib/python2.7/site-packages/$_realname" "$pkgdir/usr/lib/python2.7/site-packages/" } |