diff options
author | rkcf | 2019-05-20 09:50:08 -0700 |
---|---|---|
committer | rkcf | 2019-05-20 09:50:08 -0700 |
commit | 9467551d8f91740cbc9f5c6212f8c748c13f311d (patch) | |
tree | 1705b96d78ded226af861c493af04f705d6c5300 | |
parent | d07aa5fc9a154e52f5966ca8df387a8207b8ec20 (diff) | |
download | aur-9467551d8f91740cbc9f5c6212f8c748c13f311d.tar.gz |
update dependencies and add license
-rw-r--r-- | .SRCINFO | 10 | ||||
-rw-r--r-- | PKGBUILD | 53 |
2 files changed, 42 insertions, 21 deletions
@@ -1,14 +1,16 @@ -# Generated by mksrcinfo v8 -# Wed Mar 27 20:07:27 UTC 2019 pkgbase = python-better-exceptions pkgdesc = Pretty and useful exceptions in Python, automatically pkgver = 0.2.2 - pkgrel = 1 + pkgrel = 2 url = https://github.com/Qix-/better-exceptions arch = any license = MIT + makedepends = python-setuptools + makedepends = python2-setuptools + depends = python + depends = python2 source = https://github.com/Qix-/better-exceptions/archive/0.2.2.tar.gz - sha256sums = 92fdf2cd1a39b1db2564ea43da41a8d0de985f1cc3a755a81d74173d9260cfbc + md5sums = 40e33eb6a58c219e3425ea7c6a8f4811 pkgname = python-better-exceptions depends = python @@ -1,31 +1,50 @@ -# Maintainer: mdraw.gh at gmail dot com +# Maintainer: Andrew Steinke <rkcf@rkcf.me> +# Contributor: mdraw.gh at gmail dot com +pkgbase=python-better-exceptions _pkgbase='better-exceptions' -pkgbase='python-better-exceptions' -pkgname=('python-better-exceptions' 'python2-better-exceptions') -pkgver='0.2.2' -pkgrel=1 +pkgname=(python-better-exceptions python2-better-exceptions) +pkgver=0.2.2 +pkgrel=2 pkgdesc="Pretty and useful exceptions in Python, automatically" arch=('any') url='https://github.com/Qix-/better-exceptions' license=('MIT') -source=("https://github.com/Qix-/better-exceptions/archive/${pkgver}.tar.gz") -sha256sums=('92fdf2cd1a39b1db2564ea43da41a8d0de985f1cc3a755a81d74173d9260cfbc') +depends=('python' 'python2') +makedepends=('python-setuptools' 'python2-setuptools') +source=("$url/archive/$pkgver.tar.gz") +md5sums=('40e33eb6a58c219e3425ea7c6a8f4811') + +prepare() { + cp -rup "$_pkgbase-$pkgver" "${_pkgbase}2-$pkgver" +} + +build() { + cd "$srcdir/$_pkgbase-$pkgver" + python setup.py build + + cd "$srcdir/$_pkgbase-$pkgver" + python2 setup.py build +} package_python-better-exceptions() { - depends=('python') - makedepends=('python-setuptools') - conflicts=('python-better-exceptions-git') + depends=('python') + makedepends=('python-setuptools') + conflicts=('python-better-exceptions-git') - cd "${srcdir}/${_pkgbase}-${pkgver}" - python setup.py install --root="${pkgdir}" --optimize=1 + cd "$srcdir/$_pkgbase-$pkgver" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } package_python2-better-exceptions() { - depends=('python2') - makedepends=('python2-setuptools') - conflicts=('python2-better-exceptions-git') + depends=('python2') + makedepends=('python2-setuptools') + conflicts=('python2-better-exceptions-git') - cd "${srcdir}/${_pkgbase}-${pkgver}" - python2 setup.py install --root="${pkgdir}" --optimize=1 + cd "$srcdir/$_pkgbase-$pkgver" + python2 setup.py install --root="$pkgdir" --optimize=1 --skip-build + install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } + +# vim:set ts=2 sw=2 et: |