git » offpunk-git.git » commit d0ed179

Make dependencies more transparent

author Klaus Alexander Seistrup
2024-06-05 12:50:53 UTC
committer Klaus Alexander Seistrup
2024-06-05 12:50:53 UTC
parent f79d1004069e2788fb955379c55135a3b1aa8b6c

Make dependencies more transparent

Even though most of the python module dependencies are optional from the
viewpoint of offpunk itself, a few of them depends on other dependencies,
making it unclear to the casual user what to install and what not.

Until somebody complains with good reasons, all importable Python stuff
is now har dependencies, while external programs like clipboard handlers,
image viewers and the URL opener are optional dependencies.

Change my mind.

.SRCINFO +10 -10
PKGBUILD +10 -10

diff --git a/.SRCINFO b/.SRCINFO
index 3568740..8c12fa2 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
 pkgbase = offpunk-git
 	pkgdesc = Fork of the command-line Gemini client AV-98 with added offline capabilities (built from latest commit)
 	pkgver = 2.2.r14.g469311b
-	pkgrel = 2
+	pkgrel = 3
 	epoch = 5
 	url = https://git.sr.ht/~lioploum/offpunk
 	arch = any
@@ -15,16 +15,16 @@ pkgbase = offpunk-git
 	depends = file
 	depends = less
 	depends = python
+	depends = python-beautifulsoup4
+	depends = python-chardet
+	depends = python-cryptography
+	depends = python-feedparser
+	depends = python-lxml-html-clean
+	depends = python-pillow
+	depends = python-readability-lxml
+	depends = python-requests
+	depends = python-setproctitle
 	optdepends = chafa: chafa and ansiwrap are required to render images in terminal
-	optdepends = python-beautifulsoup4: conversion of HTML
-	optdepends = python-chardet: detect text encoding
-	optdepends = python-cryptography: better support of TOFU client certificates
-	optdepends = python-feedparser: required to parse RSS and Atom feeds
-	optdepends = python-lxml-html-clean: HTML cleaner from lxml project
-	optdepends = python-pillow: image manipulation
-	optdepends = python-readability-lxml: conversion of HTML
-	optdepends = python-requests: for HTTP support
-	optdepends = python-setproctitle: allows offpunk to change its process title
 	optdepends = timg: view images and videos in the terminal
 	optdepends = wl-clipboard: copies text to the Wayland clipboard
 	optdepends = xdg-utils: xdg-open opens a URL in the preferred application
diff --git a/PKGBUILD b/PKGBUILD
index 7494994..5e06697 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ pkgname='offpunk-git'
 _pkgname='offpunk'
 epoch=5
 pkgver=2.2.r14.g469311b
-pkgrel=2
+pkgrel=3
 pkgdesc='Fork of the command-line Gemini client AV-98 with added offline capabilities (built from latest commit)'
 arch=('any')
 url='https://git.sr.ht/~lioploum/offpunk'
@@ -16,6 +16,15 @@ depends=(
   'file'
   'less'
   'python'
+  'python-beautifulsoup4'
+  'python-chardet'
+  'python-cryptography'
+  'python-feedparser'
+  'python-lxml-html-clean'
+  'python-pillow'
+  'python-readability-lxml'
+  'python-requests'
+  'python-setproctitle'
 )
 makedepends=(
   'coreutils'
@@ -27,15 +36,6 @@ makedepends=(
 )
 optdepends=(
   'chafa: chafa and ansiwrap are required to render images in terminal'
-  'python-beautifulsoup4: conversion of HTML'
-  'python-chardet: detect text encoding'
-  'python-cryptography: better support of TOFU client certificates'
-  'python-feedparser: required to parse RSS and Atom feeds'
-  'python-lxml-html-clean: HTML cleaner from lxml project'
-  'python-pillow: image manipulation'
-  'python-readability-lxml: conversion of HTML'
-  'python-requests: for HTTP support'
-  'python-setproctitle: allows offpunk to change its process title'
   'timg: view images and videos in the terminal'
   'wl-clipboard: copies text to  the Wayland clipboard'
   'xdg-utils: xdg-open opens a URL in the preferred application'