# Contributor: mio # Maintainer: mio pkgname=offpunk pkgver=1.10 pkgrel=1 pkgdesc="An offline-first browser for the small internet" url="https://git.sr.ht/~lioploum/offpunk" license="BSD-2-Clause" arch="noarch !s390x !riscv64" # Missing libimagequant on 390x and riscv64 # Mandatory deps (other deps support major features): python3 file less depends=" chafa file less py3-beautifulsoup4 py3-chardet py3-cryptography py3-feedparser py3-pillow py3-readability-lxml py3-requests py3-setproctitle python3 timg xdg-utils xsel " makedepends=" py3-flit-core py3-gpep517 " subpackages="$pkgname-doc $pkgname-pyc" source="offpunk-$pkgver.tar.gz::https://git.sr.ht/~lioploum/offpunk/archive/v$pkgver.tar.gz" options="!check" # No tests builddir="$srcdir"/offpunk-v"$pkgver" build() { gpep517 build-wheel \ --wheel-dir .dist \ --output-fd 3 3>&1 >&2 } package() { python3 -m installer -d "$pkgdir" \ .dist/*.whl install -Dm0644 man/"$pkgname".1 "$pkgdir"/usr/share/man/man1/"$pkgname".1 install -Dm0644 README.md "$pkgdir"/usr/share/doc/"$pkgname"/README.md install -Dm0644 LICENSE "$pkgdir"/usr/share/licenses/"$pkgname"/LICENSE } sha512sums=" c734b5f19a844a1efbcdbf9d7fb354d6555f4f19d7bacaba05440aeaa76d1d587982f9acacdaeb254c397cfdd25d8f0b5f2c5d1a4eb9ba965a48fc7190182337 offpunk-1.10.tar.gz "