makedeb


python3-porn-cli 1.0.6-0


Porn lib for mov-cli, for watching porn via the terminal.

Click here to go back to the commit logs for python3-porn-cli.

Commit:


Hash: 97cd934e54b547937bd97361e1904e5ff30384cf

Message: 1.0.3

Diff


diff --git a/.SRCINFO b/.SRCINFO
index be65be0..eafa38e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,24 +1,30 @@
 generated-by = makedeb
-pkgname = porn-cli-bullseye
-pkgbase = porn-cli-bullseye
+pkgname = porn-cli
+pkgbase = porn-cli
 pkgdesc = Python script for watching porn via the terminal.
-pkgrel = 1
-pkgver = 1.0.1
+pkgrel = 0
+pkgver = 1.0.3
 url = https://github.com/mov-cli/porn-cli
 arch = all
 conflicts = porn-cli-git
 depends = python3-bs4
 depends = python3-lxml
-depends = python3-click
 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 = python3-setuptools
+makedepends = python3-build
+makedepends = python3-installer
+makedepends = python3-wheel
 provides = porn-cli
-source = porn-cli.tar.gz::https://github.com/mov-cli/porn-cli/archive/refs/tags/1.0.1.tar.gz
-b2sums = 335bb473fab3d65ec07264d2d76a8ab8aae27d756744f92bdc21231a2d25779228c378600dcb69565beec31526d97ca531e3e98812e5b3c783bcf5c4d95c7133
-makedepends = python3-setuptools
+source = porn-cli-1.0.3.tar.gz::https://github.com/mov-cli/porn-cli/archive/refs/tags/1.0.3.tar.gz
+b2sums = 9583ad05387b8df0575428a4d12a552e1bdfb986c71e780d589f596551f630766c14cd0dbbf05f863839aa2c17f2f3802d2275fbf221aa3570691e6e22e46abd
+makedepends = python3-build
+makedepends = python3-installer
+makedepends = python3-wheel
diff --git a/PKGBUILD b/PKGBUILD
index 5d02808..c950c2a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,31 +1,35 @@
 # Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
-_pkgname='porn-cli'
-pkgname='porn-cli-bullseye'
-pkgver=1.0.1
-pkgrel=1
+pkgname='porn-cli'
+pkgver=1.0.3
+pkgrel=0
 pkgdesc="Python script for watching porn via the terminal."
 arch=('all')
 url="https://github.com/mov-cli/porn-cli"
 license=('GPL3')
-makedepends=('python3-setuptools') 
+makedepends=('python3-build' 'python3-installer' 'python3-wheel') 
 #debian bug: lxml missig cssselect dependency
 #debian bug: pycryptodome is actually pycryptodomex
-depends=('python3-bs4' 'python3-lxml' 'python3-click' '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=('porn-cli')
 conflicts=('porn-cli-git')
-source=("$_pkgname.tar.gz::https://github.com/mov-cli/porn-cli/archive/refs/tags/$pkgver.tar.gz")
-b2sums=('335bb473fab3d65ec07264d2d76a8ab8aae27d756744f92bdc21231a2d25779228c378600dcb69565beec31526d97ca531e3e98812e5b3c783bcf5c4d95c7133')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/mov-cli/porn-cli/archive/refs/tags/$pkgver.tar.gz")
+b2sums=('9583ad05387b8df0575428a4d12a552e1bdfb986c71e780d589f596551f630766c14cd0dbbf05f863839aa2c17f2f3802d2275fbf221aa3570691e6e22e46abd')
 
 build(){
-  cd "$srcdir/$_pkgname-$pkgver"
-  python3 setup.py build
+  cd "$srcdir/$pkgname-$pkgver"
+  python3 -m build --no-isolation --wheel
 }
 
 package() {
-  cd "$srcdir/$_pkgname-$pkgver"
-  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"
+  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" 
+  # wheel BUG
+  cp -R porn_cli "$pkgdir"/usr/lib/*/dist-packages/
+  # 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"
 }