aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--testing/lasem/APKBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/lasem/APKBUILD b/testing/lasem/APKBUILD
new file mode 100644
index 0000000000..829f7c488d
--- /dev/null
+++ b/testing/lasem/APKBUILD
@@ -0,0 +1,51 @@
+# Contributor: Jakub Jirutka <jakub@jirutka.cz>
+# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
+pkgname=lasem
+pkgver=0.4.3
+pkgrel=0
+pkgdesc="A library for rendering SVG and Mathml, implementing a DOM like API"
+url="https://wiki.gnome.org/Projects/Lasem"
+arch="all"
+license="LGPL2 GPL2"
+makedepends="intltool gdk-pixbuf-dev gobject-introspection-dev libxml2-dev
+ pango-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-render"
+source="http://download.gnome.org/sources/lasem/${pkgver%.*}/lasem-$pkgver.tar.xz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+ cd "$builddir"
+
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-silent-rules \
+ || return 1
+ make
+}
+
+package() {
+ cd "$builddir"
+
+ make DESTDIR="$pkgdir" install || return 1
+
+ rm -r "$pkgdir"/usr/share/gtk-doc \
+ "$pkgdir"/usr/doc
+}
+
+render() {
+ pkgname="Simple MathML converter"
+
+ cd "$pkgdir"
+
+ mkdir -p "$subpkgdir"/usr/bin
+ mv usr/bin/lasem-render* "$subpkgdir"/usr/bin/
+ rmdir usr/bin || true
+
+ ln -s lasem-render-${pkgver%.*} "$subpkgdir"/usr/bin/lasem-render
+}
+
+sha512sums="60023c23389128dc1f49dc31fb1fd661624f69495ec8c1b2a8f8182273eb3c343b06bebd0a74c75d1a63d5de6428368839cfaca630ef2dce4a6e858e0165c398 lasem-0.4.3.tar.xz"