makedeb


python3-mov-cli-test 1.1.5-1


A mov-cli v4 plugin for watching free films and animations in the CC.

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for python3-mov-cli-test.

# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
_pkgname=mov-cli-test
pkgname=python3-mov-cli-test
pkgver=1.1.5
pkgrel=1
pkgdesc="A mov-cli v4 plugin for watching free films and animations in the CC."
arch=('all')
license=('MIT')
depends=('python3-requests' 'python3-pytubefix')
makedepends=('python3-build' 'python3-installer' 'python3-wheel')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/THEGOLDENPRO/${_pkgname}/archive/refs/tags/${pkgver}.tar.gz")
b2sums=('8617e5f67902cef217c8460c2beea212f2ba56315a4fd983e28f250c5e839d7e02947a52121d187678a75fd699fdb953336034c446c08ba448acf9d8570f1b7a')

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/"
}