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-git.
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
_pkgname=mov-cli-test
pkgname=python3-mov-cli-test-git
pkgver=1.1.7.r11.2ed6bb4
pkgrel=1
pkgdesc="A mov-cli v4 plugin for watching free films and animations in the CC."
arch=('all')
license=('MIT')
depends=('python3-pytubefix')
makedepends=('git' 'python3-build' 'python3-installer' 'python3-wheel')
source=("git+https://github.com/THEGOLDENPRO/mov-cli-test")
b2sums=('SKIP')
provides=('python3-mov-cli-test')
conflicts=('python3-mov-cli-test')
pkgver() {
cd "$srcdir/${_pkgname}"
printf "%s.r%s.%s" "$(grep __version__ mov_cli_test/__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/"
}