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-git.
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
_pkgname=mov-cli-youtube
pkgname=python3-mov-cli-youtube-git
pkgver=1.2.2.r33.b9036c2
pkgrel=1
pkgdesc="A mov-cli v4 plugin for watching youtube."
arch=('all')
license=('MIT')
depends=('python3-requests' 'python3-pytubefix' 'yt-dlp')
makedepends=('git' 'python3-build' 'python3-installer' 'python3-wheel')
source=("git+https://github.com/mov-cli/mov-cli-youtube")
b2sums=('SKIP')
provides=('python3-mov-cli-youtube')
conflicts=('python3-mov-cli-youtube')
pkgver() {
cd "$srcdir/${_pkgname}"
printf "%s.r%s.%s" "$(grep __version__ mov_cli_youtube/__init__.py | cut -d '"' -f 2)" "$(git rev-list --count HEAD)" "$(git describe --long --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
}
build(){
cd "$srcdir/${_pkgname}"
python3 -m build --no-isolation --wheel
}
package() {
cd $srcdir/${_pkgname}
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/"
}