makedeb
A mov-cli v4 plugin for watching free films and animations in the CC.
Viewing /PKGBUILD
.
Click here to go back to the Git tree for python3-mov-cli-test.
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
_pkgname=mov-cli-test
pkgname=python3-mov-cli-test
pkgver=1.1.7
pkgrel=0
pkgdesc="A mov-cli v4 plugin for watching free films and animations in the CC."
arch=('all')
license=('MIT')
depends=('python3-pytubefix')
makedepends=('python3-build' 'python3-installer' 'python3-wheel')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/THEGOLDENPRO/${_pkgname}/archive/refs/tags/${pkgver}.tar.gz")
b2sums=('ba2ae1e00738909cfdd5694d1bc92962768b1ea084db58b64693421f39bb54b7a663af49d3a6f9c489873f8bdfb7b844a1e8ae9b17a07b87faed0add9db6531c')
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"
#doc
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$_pkgname/readme"
install -Dm644 LICENSE "$pkgdir/usr/share/doc/$_pkgname/"
}