makedeb
A mov-cli v4 plugin for watching youtube.
Viewing /PKGBUILD
.
Click here to go back to the Git tree for python3-mov-cli-youtube.
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
_pkgname=mov-cli-youtube
pkgname=python3-mov-cli-youtube
pkgver=1.3.5
pkgrel=0
pkgdesc="A mov-cli v4 plugin for watching youtube."
arch=('all')
license=('MIT')
depends=('python3-requests' 'python3-pytubefix' 'yt-dlp')
makedepends=('python3-build' 'python3-installer' 'python3-wheel')
source=("python3-mov-cli-youtube-${pkgver}.tar.gz::https://github.com/mov-cli/${_pkgname}/archive/refs/tags/${pkgver}.tar.gz")
b2sums=('98dc4a6d4d31f578f431f200652d4bc10685b48cf0670181693538ffb4c7d5c7a4dcbd1b99ea060576860bd4b6fb965b522ca6844ed064becb64d267fead7f23')
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/"
}