aports/testing/pympress/APKBUILD
ptrcnull d6e150e932
testing/*: rebuild against python 3.12
this is only a partial rebuild,
including stuff that i built on my personal machine
with python 3.12.2; might fail with 3.12.3
2024-04-15 17:00:47 +02:00

55 lines
1.3 KiB
Text

# Maintainer: Cowington Post <cowingtonpost@gmail.com>
pkgname=pympress
pkgver=1.8.5
pkgrel=1
pkgdesc="PDF reader designed for dual-screen presentations"
url="https://github.com/Cimbali/pympress"
arch="noarch"
license="GPL-2.0-or-later"
depends="
gdk-pixbuf
gobject-introspection
gstreamer
gtk+3.0
poppler-glib
py3-cairo
py3-gobject3
py3-watchdog
"
makedepends="
py3-babel
py3-gpep517
py3-myst-parser
py3-setuptools
py3-sphinx
py3-wheel
"
subpackages="$pkgname-pyc $pkgname-lang $pkgname-doc"
source="https://github.com/Cimbali/pympress/archive/refs/tags/v$pkgver/pympress-$pkgver.tar.gz"
options="bigdocs !check" # no upstream tests
build() {
gpep517 build-wheel \
--wheel-dir .dist \
--output-fd 3 3>&1 >&2
python3 -m sphinx -bhtml docs/ build/sphinx/html/
}
package() {
python3 -m installer -d "$pkgdir" \
.dist/*.whl
mkdir -p "$pkgdir"/usr/share/doc/"$pkgname"
cp -a build/sphinx/html/* "$pkgdir"/usr/share/doc/"$pkgname"/
}
lang() {
pkgdesc="Translations for $pkgname"
install_if="lang $pkgname=$pkgver-r$pkgrel"
amove usr/lib/python3.*/site-packages/pympress/share/locale
}
sha512sums="
e110d99935a43f7b4b36581993247c8f44cb214759a98017f8d49f9aadcb998528787154a0c6e53d39c1da650df8a314513af06482b1dc145ea020dd278f4aea pympress-1.8.5.tar.gz
"