aboutsummaryrefslogtreecommitdiffstats
path: root/main/gd/APKBUILD
blob: 63d7a1164630c40b5a34ac6fb333cc3e6001ae32 (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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
pkgname=gd
pkgver=2.1.0
_myver=${pkgver/_rc/RC}
pkgrel=0
pkgdesc="Library for the dynamic creation of images by programmers"
url="http://www.libgd.org/"
arch="all"
license="custom"
depends=
makedepends="libpng-dev libjpeg-turbo-dev freetype-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc"
source="http://bitbucket.org/libgd/gd-libgd/downloads/libgd-$pkgver.tar.xz"

_builddir="$srcdir"/lib$pkgname-$_myver
prepare() {
	cd "$_builddir"
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--with-png \
		--with-freetype \
		--with-jpeg \
		--without-xpm \
		--without-fontconfig
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
	install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
	rm -r "$pkgdir"/usr/lib/libgd.la
}

md5sums="03588159bf4faab9079849c8d709acc6  libgd-2.1.0.tar.xz"
sha256sums="fa6665dfe3d898019671293c84d77067a3d2ede50884dbcb6df899d508370e5a  libgd-2.1.0.tar.xz"
sha512sums="d18b4741cc67594a9f1602a9ae765751b005cff6e0b1e7ae8a46e2b2c114984e5d2ec1395245a3bd387b58f962c34948187c920f55a191dbe7b01b432730a7a7  libgd-2.1.0.tar.xz"