makedeb
A mov-cli v4 plugin for watching anime.
Viewing /PKGBUILD
.
Click here to go back to the Git tree for python3-mov-cli-otaku-watcher.
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
_pkgname=otaku-watcher
pkgname=python3-mov-cli-otaku-watcher
pkgver=1.1.4
pkgrel=0
pkgdesc="A mov-cli v4 plugin for watching anime."
arch=('all')
license=('MIT')
provides=('python3-mov-cli-anime' 'python3-mov-cli-anime-git')
conflicts=('python3-mov-cli-anime' 'python3-mov-cli-anime-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=('a3e598d1c3667288ef9f99c0516f88b227742519942d77f62f9f23e69b107a65d8e171746f5ab9ede6ae28863cc4b4fc3fb779e08f4e6aa84b23e40e777c737f')
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/"
}