# Maintainer: exponential _pkgname='porn-cli' pkgname='python3-porn-cli' pkgver=1.0.6 pkgrel=0 pkgdesc="Porn lib for mov-cli, for watching porn via the terminal." arch=('all') url="https://github.com/mov-cli/porn-cli" license=('GPL3') makedepends=('python3-build' 'python3-installer' 'python3-wheel') #debian bug: lxml missig cssselect dependency #debian bug: pycryptodome is actually pycryptodomex depends=('python3') optdepends=('mov-cli>=1.4.6') conflicts=('porn-cli' 'porn-cli-git') source=("$pkgname-$pkgver.tar.gz::https://github.com/mov-cli/porn-cli/archive/refs/tags/$pkgver.tar.gz") b2sums=('a536084c9ce40b6b6cbbaac8f7d6ab09167277d3cb9e5d196f4f5830bbddfd4aa2afcf880179674fa6e470122a5ea16f7142722e1e614f39ca4b538217db3052') build(){ cd "$srcdir/$_pkgname-$pkgver" python3 -m build --no-isolation --wheel } package() { cd "$srcdir/$_pkgname-$pkgver" python3 -m installer --destdir="$pkgdir" dist/*.whl #--optimize=1 --skip-build # Manual remove local mv "$pkgdir/usr/local/"* "$pkgdir/usr/" rmdir "$pkgdir/usr/local" # wheel BUG cp -R porn_cli "$pkgdir"/usr/lib/*/dist-packages/ # doc install -Dm644 "LICENSE" "$pkgdir/usr/share/doc/$_pkgname/license" install -Dm644 "README.md" "$pkgdir/usr/share/doc/$_pkgname/readme" install -Dm644 "disclaimer.org" "$pkgdir/usr/share/doc/$_pkgname/disclaimer" }