aboutsummaryrefslogtreecommitdiffstats
path: root/testing/libgdiplus/APKBUILD
blob: a9ff5790c80f53bcf6e97f7e6ad5e620b56d2571 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=libgdiplus
pkgver=5.6
pkgrel=0
pkgdesc="An Open Source Implementation of the GDI+ API"
url="http://www.mono-project.com"
arch="all"
license="LGPL"
depends=""
depends_dev="tiff-dev cairo-dev libexif-dev glib-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-dev"
source="http://download.mono-project.com/sources/libgdiplus/libgdiplus-$pkgver.tar.gz"

_builddir="$srcdir"/libgdiplus-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

sha512sums="22ade1e300f3d24407875db1c44db5079497a30cba7018a1f3c1f85070140c511e92dbe40c0f306f6adc7a3fb15f05674a86bb2644216c3e06845c3b7a47b27c  libgdiplus-5.6.tar.gz"