summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/libgxps/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/user/libgxps/APKBUILD b/user/libgxps/APKBUILD
new file mode 100644
index 000000000..5deb16d48
--- /dev/null
+++ b/user/libgxps/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: A. Wilcox <awilfox@adelielinux.org>
+# Maintainer: A. Wilcox <awilfox@adelielinux.org>
+pkgname=libgxps
+pkgver=0.3.1
+pkgrel=0
+pkgdesc="GObject-based library for manipulating and rendering XPS documents"
+url="https://wiki.gnome.org/Projects/libgxps"
+arch="all"
+license="LGPL-2.1+"
+depends=""
+depends_dev="glib-dev"
+makedepends="$depends_dev meson cairo-dev freetype-dev gobject-introspection-dev
+ gtk+3.0-dev lcms2-dev libarchive-dev libjpeg-turbo-dev ninja tiff-dev"
+subpackages="$pkgname-dev"
+source="https://ftp.gnome.org/pub/gnome/sources/libgxps/0.3/libgxps-$pkgver.tar.xz"
+
+build() {
+ cd "$builddir"
+ meson \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --buildtype=release \
+ . output
+ ninja -C output
+}
+
+check() {
+ cd "$builddir"
+ ninja -C output test
+}
+
+package() {
+ cd "$builddir"
+ DESTDIR="$pkgdir" ninja -C output install
+}
+
+sha512sums="80401bd3c9753c74e425c5c08510cac314ad255ebeda9676bd5396a217770c7f5d8733c64b649cc6fdaa43423bb1a4ad21e1e0e3f7903f486e75a1d678850239 libgxps-0.3.1.tar.xz"