addpkg: python-tidylib 0.3.2-1
This commit is contained in:
parent
4dcde91b65
commit
c9dfc3b465
1 changed files with 41 additions and 0 deletions
41
python-tidylib/PKGBUILD
Normal file
41
python-tidylib/PKGBUILD
Normal file
|
@ -0,0 +1,41 @@
|
|||
# Maintainer: George Rawlinson <grawlinson@archlinux.org>
|
||||
|
||||
pkgname=python-tidylib
|
||||
pkgver=0.3.2
|
||||
pkgrel=1
|
||||
pkgdesc='Python wrapper around tidyhtml parser/cleaner'
|
||||
arch=('any')
|
||||
url='https://countergram.github.io/pytidylib/'
|
||||
license=('MIT')
|
||||
depends=('python' 'tidyhtml')
|
||||
makedepends=('git' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel')
|
||||
_commit='25bc4713f4fe42bccbd61fb8454ae5b4814063b6'
|
||||
source=("$pkgname::git+https://github.com/countergram/pytidylib#commit=$_commit")
|
||||
b2sums=('SKIP')
|
||||
|
||||
pkgver() {
|
||||
cd "$pkgname"
|
||||
|
||||
git describe --tags | sed 's/^v//'
|
||||
}
|
||||
|
||||
build() {
|
||||
cd "$pkgname"
|
||||
|
||||
python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
check() {
|
||||
cd "$pkgname"
|
||||
|
||||
python -m unittest discover
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$pkgname"
|
||||
|
||||
python -m installer --destdir="$pkgdir" dist/*.whl
|
||||
|
||||
# license
|
||||
install -vDm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
||||
}
|
Loading…
Reference in a new issue