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: e8c424ad2dbd2210ecfba27ce42b6671027439d5
Message: dropping shell script and refactor
diff --git a/.SRCINFO b/.SRCINFO
index 156e636..2a27d23 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,26 @@
generated-by = makedeb
pkgname = mov-cli-git
-pkgname = mov-cli-sh-git
pkgbase = mov-cli-git
-pkgdesc = Bash and python script for watching movies and TV shows via the terminal
+pkgdesc = Python script for watching movies and TV shows via the terminal.
pkgrel = 1
-pkgver = 1.0.r1.g94a28e7
+pkgver = 1.1.0.r0.ge2fd411
url = https://github.com/mov-cli/mov-cli
arch = all
+conflicts = mov-cli-py-git-experimental
+conflicts = mov-cli-sh-git
+depends = python3-bs4
+depends = python3-lxml
+depends = python3-cssselect
+depends = python3-httpx
+depends = python3-pycryptodome-fix
+depends = python3-six
+depends = python3-krfzf-py
+depends = mpv
license = GPL3
makedepends = git
makedepends = python3-setuptools
optdepends = vlc: An alternative video player
+provides = mov-cli
source = git+https://github.com/mov-cli/mov-cli.git
sha256sums = SKIP
makedepends = git
diff --git a/PKGBUILD b/PKGBUILD
index bbfa80d..8eaeef7 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,47 +1,37 @@
# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
-pkgbase='mov-cli-git'
_pkgname='mov-cli'
-pkgname=('mov-cli-git' 'mov-cli-sh-git')
-pkgver=1.0.r1.g94a28e7
+pkgname='mov-cli-git'
+pkgver=1.1.0.r0.ge2fd411
pkgrel=1
-pkgdesc="Bash and python script for watching movies and TV shows via the terminal"
+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')
+#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')
optdepends=('vlc: An alternative video player')
+provides=('mov-cli')
+conflicts=('mov-cli-py-git-experimental' 'mov-cli-sh-git')
source=('git+https://github.com/mov-cli/mov-cli.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/$_pkgname"
-
git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
-package_mov-cli-git() {
- pkgdesc="Python script for watching movies and TV shows via the terminal"
- conflicts=('mov-cli-py-git-experimental')
- #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')
-
- cd "$srcdir/$_pkgname"
- python3 setup.py build
- python3 setup.py install --root "$pkgdir" --optimize=1 --skip-build --install-layout deb
-
- 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"
+build(){
+ cd "$srcdir/$_pkgname"
+ python3 setup.py build
}
-package_mov-cli-sh-git() {
- pkgdesc="Bash script for watching movies and TV shows via the terminal"
- depends=('coreutils' 'aria2' 'grep' 'sed' 'awk' 'curl' 'openssl' 'mpv' 'ffmpeg' 'fzf')
+package() {
+ cd "$srcdir/$_pkgname"
+ python3 setup.py install --root "$pkgdir" --optimize=1 --skip-build --install-layout deb
- cd "$srcdir/$_pkgname"
- install -Dm755 "$_pkgname" "$pkgdir/usr/bin/mov-cli-sh"
- install -Dm644 "LICENSE" "$pkgdir/usr/share/doc/mov-cli-sh/license"
- install -Dm644 "README.md" "$pkgdir/usr/share/doc/mov-cli-sh/readme"
- install -Dm644 "disclaimer.org" "$pkgdir/usr/share/doc/mov-cli-sh/disclaimer"
+ 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"
}