aboutsummaryrefslogblamecommitdiffstats
path: root/testing/libgdiplus/APKBUILD
blob: 9f75f5fd32665db033c55dd4c4ce834fba644d9a (plain) (tree)
1
2
3
4
5
6
7


                                                     
          
        
                                                       
                                   






                                                     
                                                                                       




























                                                                        

 
                                                                                                                                                                    
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer:
pkgname=libgdiplus
pkgver=5.6
pkgrel=1
pkgdesc="An Open Source Implementation of the GDI+ API"
url="https://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="https://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"