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