aboutsummaryrefslogtreecommitdiffstats
path: root/main/gd/APKBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'main/gd/APKBUILD')
-rw-r--r--main/gd/APKBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/main/gd/APKBUILD b/main/gd/APKBUILD
new file mode 100644
index 0000000000..df9fce4ec5
--- /dev/null
+++ b/main/gd/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Carlo Landmeter <clandmeter@gmail.com>
+pkgname=gd
+pkgver=2.0.36_rc1
+_myver=2.0.36RC1
+pkgrel=7
+pkgdesc="Library for the dynamic creation of images by programmers"
+url="http://www.libgd.org/"
+arch="all"
+license="custom"
+depends=
+makedepends="libpng-dev jpeg-dev freetype-dev zlib-dev"
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://www.libgd.org/releases/${pkgname}-${_myver}.tar.bz2"
+
+_builddir="$srcdir"/$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
+ install -D -m644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
+}
+
+dev() {
+ default_dev
+ rm -r "$subpkgdir"/usr/lib/libgd.la
+}
+
+md5sums="e876979ca3130623a4e7866d9579171a gd-2.0.36RC1.tar.bz2"