aboutsummaryrefslogtreecommitdiffstats
path: root/testing/lasem/APKBUILD
blob: c79d36d206656884594bb80cae924ef3407e9cd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=lasem
pkgver=0.5.0
_apiver=0.6
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

	# Some software expect pkg-config name without a version.
	test -e "$pkgdir"/usr/lib/pkgconfig/$pkgname-$_apiver.pc
	ln -s $pkgname-$_apiver.pc "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc

	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

	test -e "$subpkgdir"/usr/bin/lasem-render-$_apiver
	ln -s lasem-render-$_apiver "$subpkgdir"/usr/bin/lasem-render
}

sha512sums="1ee92ea73550ee7b23394976c91e63d9dccbd76ba414d01a06cb75f65da0decf57c56a9121e4e120f1cf2311dc217d462ac361ca16f6b0d7410e1b886b6f4cd8  lasem-0.5.0.tar.xz"