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: 0cd6933e86b77cadc60f63e9a11e2bc8b8727015
Message: version 4, ypu need to purge the git repo
diff --git a/.SRCINFO b/.SRCINFO
index dba5eb9..a6e2933 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,36 +3,39 @@ pkgname = mov-cli-git
pkgbase = mov-cli-git
pkgdesc = Python script for watching movies and TV shows via the terminal.
pkgrel = 1
-pkgver = 1.5.4.r0.g5f0ec5a
+pkgver = 4.0.5.r1.e55284a
url = https://github.com/mov-cli/mov-cli
arch = all
conflicts = mov-cli
-depends = python3-bs4
-depends = python3-tldextract
depends = python3-httpx
-depends = python3-pycryptodome-fix
-depends = python3-six
-depends = python3-krfzf-py
-depends = python3-lxml
-depends = python3-cssselect
+depends = python3-toml
+depends = python3-devgoldyutils
+depends = python3-typer
+depends = python3-inquirer
+depends = python3-bs4
+depends = python3-unidecode
depends = mpv
-depends = ffmpeg
-depends = fzf
license = GPL3
makedepends = git
makedepends = python3-build
+makedepends = python3-setuptools
+makedepends = python3-setuptools-scm
makedepends = python3-installer
-makedepends = python3-poetry
makedepends = python3-wheel
-optdepends = python3-porn-cli: Porn lib
+optdepends = fzf
+optdepends = python3-lxml: faster scraping
+optdepends = python3-cssselect: debian bug, required for python3-lxml
optdepends = vlc: alternate media player
provides = mov-cli
source = git+https://github.com/mov-cli/mov-cli.git
b2sums = SKIP
makedepends = git
makedepends = python3-build
+makedepends = python3-setuptools
+makedepends = python3-setuptools-scm
makedepends = python3-installer
-makedepends = python3-poetry
makedepends = python3-wheel
-optdepends = python3-porn-cli: Porn lib
+optdepends = fzf
+optdepends = python3-lxml: faster scraping
+optdepends = python3-cssselect: debian bug, required for python3-lxml
optdepends = vlc: alternate media player
diff --git a/PKGBUILD b/PKGBUILD
index 9c8b3ba..b4dfdcf 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,26 +2,30 @@
# Contributor: Anakojm <https://anakojm.net/a-propos/#contact>
_pkgname='mov-cli'
pkgname='mov-cli-git'
-pkgver=1.5.4.r0.g5f0ec5a
+pkgver=4.0.5.r1.e55284a
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-build' 'python3-installer' 'python3-poetry' 'python3-wheel')
-#debian bug: pycryptodome is actually pycryptodomex
-#debian bug: lxml optional dependency, but missig cssselect dependency
-depends=('python3-bs4' 'python3-tldextract' 'python3-httpx' 'python3-pycryptodome-fix' 'python3-six' 'python3-krfzf-py' 'python3-lxml' 'python3-cssselect' 'mpv' 'ffmpeg' 'fzf')
-optdepends=("python3-porn-cli: Porn lib"
+makedepends=('git' 'python3-build' 'python3-setuptools' 'python3-setuptools-scm' 'python3-installer' 'python3-wheel')
+depends=('python3-httpx' 'python3-toml' 'python3-devgoldyutils' 'python3-typer' 'python3-inquirer' 'python3-bs4' 'python3-unidecode' 'mpv')
+optdepends=("fzf"
+ "python3-lxml: faster scraping"
+ "python3-cssselect: debian bug, required for python3-lxml"
"vlc: alternate media player")
provides=('mov-cli')
conflicts=('mov-cli')
source=('git+https://github.com/mov-cli/mov-cli.git')
b2sums=('SKIP')
+prepare() {
+ echo "Disclaimer: This project is to be used at the user's own risk, based on their government and laws."
+}
+
pkgver() {
- cd "$srcdir/$_pkgname"
- git describe --long --tags --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+ cd "$srcdir/${_pkgname}"
+ printf "%s.r%s.%s" "$(grep __version__ mov_cli/__init__.py | cut -d '"' -f 2)" "$(git rev-list --count HEAD)" "$(git describe --long --always | sed 's/\([^-]*-g\)/r\1/;s/-/./g')"
}
build(){
@@ -37,6 +41,6 @@ package() {
rmdir "$pkgdir/usr/local"
# doc
install -Dm644 "README.md" "$pkgdir/usr/share/doc/$_pkgname/readme"
- install -Dm644 "disclaimer.org" "$pkgdir/usr/share/doc/$_pkgname/disclaimer"
+ install -Dm644 "disclaimer.md" "$pkgdir/usr/share/doc/$_pkgname/disclaimer"
ln -s /usr/share/common-licenses/GPL-3 "$pkgdir/usr/share/doc/$_pkgname/"
}