diff options
author | yochananmarqos | 2019-09-23 16:37:11 -0600 |
---|---|---|
committer | yochananmarqos | 2019-09-23 16:37:11 -0600 |
commit | 7278bd0b413a127a1acd32234b0c1a9a3924bd73 (patch) | |
tree | 7c828e64095f9e3f66eb32cb7a3b59e835242ba3 /PKGBUILD | |
parent | ada96f5d7aeb71e3959b8f268057639185585e7b (diff) | |
download | aur-7278bd0b413a127a1acd32234b0c1a9a3924bd73.tar.gz |
build in separate directories
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -3,7 +3,7 @@ pkgname=('python-sentry_sdk' 'python2-sentry_sdk') pkgbase=python-sentry_sdk _pkgname=sentry-sdk pkgver=0.12.2 -pkgrel=1 +pkgrel=2 pkgdesc="The new Python SDK for Sentry.io" arch=('any') url="https://github.com/getsentry/sentry-python" @@ -14,9 +14,15 @@ source=("$pkgname-$pkgver.tar.gz::https://github.com/getsentry/sentry-python/rel sha256sums=('2529ab6f93914d01bcd80b1b16c15a025902350ab19af2033aa5ff797c1600ad' '59404d4c854e579097d41bfccd5006afde9d6d70e646cf55074cdbfead5ecf1c') +prepare() { + cp -a "$_pkgname-$pkgver"{,-py2} +} + build() { cd "$_pkgname-$pkgver" python setup.py build + + cd .. && cd "$_pkgname-$pkgver-py2" python2 setup.py build } @@ -33,7 +39,7 @@ package_python2-sentry_sdk() { depends=('python2-urllib3' 'python2-certifi') optdepends=('python2-flask' 'python2-blinker' 'python2-bottle' 'python2-falcon') - cd "$_pkgname-$pkgver" + cd "$_pkgname-$pkgver-py2" python2 setup.py install --root="$pkgdir/" --optimize=1 --skip-build install -Dm644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } |