diff options
author | Marcell Meszaros | 2022-06-23 14:57:23 +0200 |
---|---|---|
committer | Marcell Meszaros | 2022-06-23 14:57:23 +0200 |
commit | 2fbce0a4aac9fd3ed106914d0a42fc353bc5f882 (patch) | |
tree | 0af79e90fbde088e407790c67c5306e939b5e385 /PKGBUILD | |
parent | ec5f0ac121e402baf2651e3c00d1af5f4f1a89c1 (diff) | |
download | aur-2fbce0a4aac9fd3ed106914d0a42fc353bc5f882.tar.gz |
refactor: cleanup, formatting, use b2sums
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 42 |
1 files changed, 23 insertions, 19 deletions
@@ -1,35 +1,39 @@ -# Maintainer: Daniel Peukert <daniel@peukert.cc> +# Contributor: Marcell Meszaros < marcell.meszaros AT runbox.eu > +# Contributor: Daniel Peukert <daniel@peukert.cc> # Contributor: Felix Yan <felixonmars@archlinux.org> -_projectname='soupsieve' -pkgname="python2-$_projectname" -pkgver='1.9.6' -pkgrel='3' -pkgdesc='A CSS4 selector implementation for Beautiful Soup - python2 version' + +pkgname='python2-soupsieve' +_distname="${pkgname#python2-}" +pkgver=1.9.6 +pkgrel=3 +pkgdesc='A CSS4 selector implementation for Beautiful Soup (legacy Python 2 version)' arch=('any') -url="https://github.com/facelessuser/$_projectname" +url="https://github.com/facelessuser/${_distname}" license=('MIT') -depends=('python2-backports.functools_lru_cache') +depends=( + 'python2' + 'python2-backports.functools_lru_cache' +) makedepends=('python2-setuptools') # checkdepends=('python2-pytest' 'python2-beautifulsoup4' 'python2-html5lib' 'python2-lxml') -source=("$pkgname-$pkgver-$pkgrel.tar.gz::https://github.com/facelessuser/$_projectname/archive/$pkgver.tar.gz") -sha256sums=('3fc0bf362090cfafb0b592b120c289d72b11ddab3717015a7a327e30e23e7f65') - -_sourcedirectory="$_projectname-$pkgver" +_tarname="${_distname}-${pkgver}" +source=("${_tarname}.tar.gz::https://github.com/facelessuser/${_distname}/archive/$pkgver.tar.gz") +b2sums=('2bd2f74e6974ad73c79c018f704fef600594c568471062c503a7fb1248e2cc1840011d31550f7573654f015016f0d3272778b0100e4701318a829f916f06698e') build() { - cd "$srcdir/$_sourcedirectory/" - python2 setup.py build + cd "${_tarname}" + python2 setup.py build } # circular dependency on python2-lxml # check() { -# cd "$srcdir/$_sourcedirectory/build/" -# py.test2 +# cd "${_tarname}/build/" +# py.test2 # } package() { - cd "$srcdir/$_sourcedirectory/" - python2 setup.py install --root="$pkgdir/" --optimize=1 + cd "${_tarname}" + python2 setup.py install --root="${pkgdir}/" --optimize=1 - install -Dm644 'LICENSE.md' "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md" + install -Dm 644 'LICENSE.md' -t "${pkgdir}/usr/share/licenses/${pkgname}" } |