# Maintainer: Klaus Alexander Seistrup # Contributor: Anna Vyalkova # -*- sh -*- pkgname='offpunk-git' _pkgname='offpunk' pkgver=2.2.r5.g9a7e88d pkgrel=1 epoch=5 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' license=('AGPL-3.0-or-later') # SPDX-License-Identifier: AGPL-3.0-or-later depends=( 'file' 'less' 'python' ) makedepends=( 'coreutils' 'git' 'python-build' 'python-hatchling' 'python-installer' 'python-wheel' ) 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-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' 'xdg-utils: xdg-open opens a URL in the preferred application' 'xsel: copies text to and from the clipboard' ) provides=('offpunk') conflicts=('offpunk') source=("git+$url") noextract=("$_pkgname") sha256sums=('SKIP') pkgver() { cd "$_pkgname" git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/^v//g' } build() { cd "$_pkgname" python -m build --wheel --no-isolation } package() { cd "$_pkgname" python -m installer --destdir="$pkgdir" dist/*.whl install -vDm0644 man/*.1 -t "$pkgdir/usr/share/man/man1/" for _doc in CHANGELOG CONTRIBUTORS README.md; do install -vDm0644 "$_doc" "$pkgdir/usr/share/doc/$pkgname/$_doc" done } # eof