makedeb
Python script for watching movies and TV shows via the terminal.
Click here to go back to the commit logs for mov-cli-git.
Hash: 716a1505f157980e048d1c68235333e0ff216c84
Message: 1.4.5
diff --git a/.SRCINFO b/.SRCINFO
index 64b0ca4..fcad841 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -2,25 +2,31 @@ generated-by = makedeb
pkgname = mov-cli-git
pkgbase = mov-cli-git
pkgdesc = Python script for watching movies and TV shows via the terminal.
-pkgrel = 2
-pkgver = 1.1.3.r2.gfccb530
+pkgrel = 1
+pkgver = 1.4.5.r0.gde73c33
url = https://github.com/mov-cli/mov-cli
arch = all
-conflicts = mov-cli-py-git-experimental
-conflicts = mov-cli-sh-git
+conflicts = mov-cli
depends = python3-bs4
depends = python3-lxml
depends = python3-cssselect
+depends = python3-tldextract
depends = python3-httpx
depends = python3-pycryptodome-fix
depends = python3-six
depends = python3-krfzf-py
depends = mpv
+depends = ffmpeg
+depends = fzf
license = GPL3
makedepends = git
-makedepends = python3-setuptools
+makedepends = python3-build
+makedepends = python3-installer
+makedepends = python3-wheel
provides = mov-cli
source = git+https://github.com/mov-cli/mov-cli.git
-sha256sums = SKIP
+b2sums = SKIP
makedepends = git
-makedepends = python3-setuptools
+makedepends = python3-build
+makedepends = python3-installer
+makedepends = python3-wheel
diff --git a/PKGBUILD b/PKGBUILD
index b9add5a..0a33f85 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,21 @@
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
+# Contributor: Anakojm <https://anakojm.net/a-propos/#contact>
_pkgname='mov-cli'
pkgname='mov-cli-git'
-pkgver=1.1.3.r2.gfccb530
-pkgrel=2
+pkgver=1.4.5.r0.gde73c33
+pkgrel=1
pkgdesc="Python script for watching movies and TV shows via the terminal."
arch=('all')
url="https://github.com/mov-cli/mov-cli"
license=('GPL3')
-makedepends=('git' 'python3-setuptools')
+makedepends=('git' 'python3-build' 'python3-installer' 'python3-wheel')
#debian bug: lxml missig cssselect dependency
#debian bug: pycryptodome is actually pycryptodomex
-depends=('python3-bs4' 'python3-lxml' 'python3-cssselect' 'python3-httpx' 'python3-pycryptodome-fix' 'python3-six' 'python3-krfzf-py' 'mpv')
+depends=('python3-bs4' 'python3-lxml' 'python3-cssselect' 'python3-tldextract' 'python3-httpx' 'python3-pycryptodome-fix' 'python3-six' 'python3-krfzf-py' 'mpv' 'ffmpeg' 'fzf')
provides=('mov-cli')
-conflicts=('mov-cli-py-git-experimental' 'mov-cli-sh-git')
+conflicts=('mov-cli')
source=('git+https://github.com/mov-cli/mov-cli.git')
-sha256sums=('SKIP')
+b2sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
@@ -23,13 +24,16 @@ pkgver() {
build(){
cd "$srcdir/$_pkgname"
- python3 setup.py build
+ python3 -m build --no-isolation --wheel
}
package() {
cd "$srcdir/$_pkgname"
- python3 setup.py install --root "$pkgdir" --optimize=1 --skip-build --install-layout deb
-
+ 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 "LICENSE" "$pkgdir/usr/share/doc/$_pkgname/license"
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$_pkgname/readme"
install -Dm644 "disclaimer.org" "$pkgdir/usr/share/doc/$_pkgname/disclaimer"