diff options
author | BrainDamage | 2021-01-20 01:57:50 +0100 |
---|---|---|
committer | BrainDamage | 2021-01-20 01:57:50 +0100 |
commit | 66bb5340e01712efa9aea5c87675163cacdafb35 (patch) | |
tree | efa378faa7946772f4097557dd2a4dea0c76d187 /PKGBUILD | |
parent | 8a5308d8cbc3f7570bd37e330d19d6e90014613c (diff) | |
download | aur-66bb5340e01712efa9aea5c87675163cacdafb35.tar.gz |
temp adopted package to fix the build
version bump
dropped python2 since the dep is missing, if anyone wants they can always create a separate package
switched hash format to sha256
removed useless cruft from the pkgbuild
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 43 |
1 files changed, 15 insertions, 28 deletions
@@ -1,40 +1,27 @@ -pkgbase=python-flask-testing -pkgname=('python-flask-testing' 'python2-flask-testing') -pkgver=0.7.1 -pkgrel=2 +# Contributor: BrainDamage +# Contributor: Jat +# Contributor: xantares + +pkgname=python-flask-testing +pkgver=0.8.0 +pkgrel=1 pkgdesc="Flask unittest integration" url="https://github.com/jarus/flask-testing" arch=(any) license=('BSD') -makedepends=('python-setuptools' 'python2-setuptools' 'python-flask' 'python2-flask') +depends=('python' 'python-flask') +makedepends=('python-setuptools') source=("https://github.com/jarus/flask-testing/archive/v${pkgver}.tar.gz") -md5sums=('8f8a9ec996ca7be8b2317d3962a656b0') +sha256sums=('b9f6da673a46b2891c44a5963ec14fc405f9b8fed76bad910f47b7c2e9a06733') -prepare() { - cd "${srcdir}"/flask-testing-$pkgver -} +_basename="${pkgname#python-}" build() { - cp -r "${srcdir}"/flask-testing-$pkgver "${srcdir}"/flask-testing-$pkgver-py2 - - cd "${srcdir}"/flask-testing-$pkgver - python setup.py build - - cd "${srcdir}"/flask-testing-$pkgver-py2 - python2 setup.py build + cd "${srcdir}/${_basename}-${pkgver}" + python setup.py build } package_python-flask-testing() { - depends=('python-flask') - - cd "${srcdir}/flask-testing-$pkgver" - python setup.py install --root=${pkgdir} --optimize=1 + cd "${srcdir}/${_basename}-${pkgver}" + python setup.py install --optimize=1 --skip-build --root="${pkgdir}/" --prefix="/usr" } - -package_python2-flask-testing() { - depends=('python2-flask') - - cd "${srcdir}/flask-testing-$pkgver" - python2 setup.py install --root=${pkgdir} --optimize=1 -} - |