summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/gi-docgen/APKBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/user/gi-docgen/APKBUILD b/user/gi-docgen/APKBUILD
new file mode 100644
index 000000000..8f803d815
--- /dev/null
+++ b/user/gi-docgen/APKBUILD
@@ -0,0 +1,40 @@
+# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
+# Maintainer: Zach van Rijn <me@zv.io>
+pkgname=gi-docgen
+pkgver=2022.1
+pkgrel=0
+pkgdesc="A documentation generator for GObject-based libraries"
+url="https://gitlab.gnome.org/GNOME/gi-docgen"
+arch="noarch"
+license="Apache-2.0 OR GPL-3.0-or-later"
+depends="
+ py3-jinja2
+ py3-markdown
+ py3-markupsafe
+ py3-pygments
+ py3-toml
+ py3-typogrify
+ python3
+ "
+makedepends="meson"
+source="https://gitlab.gnome.org/GNOME/gi-docgen/-/archive/$pkgver/gi-docgen-$pkgver.tar.gz"
+
+build() {
+ meson \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --buildtype=release \
+ . output
+ meson compile ${JOBS:+-j ${JOBS}} -C output
+}
+
+check() {
+ meson test --no-rebuild -v -C output
+}
+
+package() {
+ DESTDIR="$pkgdir" meson install --no-rebuild -C output
+}
+sha512sums="93a4e887a764a2bf3e77a48220693c30c0e8b249e1de193c61f20235e514ad206dba4b99c81cd6791e525e6cd406c8dc3508c92fc52f6cc52ecf05632b9a7cb6 gi-docgen-2022.1.tar.gz"