summaryrefslogtreecommitdiff
path: root/extra/gd/PKGBUILD
blob: 101641945d9e60cefb5a69d7655081e47f653cb3 (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
# $Id: PKGBUILD 137764 2011-09-10 16:29:02Z pierre $
# Maintainer: Eric Belanger <eric@archlinux.org>

pkgname=gd
pkgver=2.0.36RC1
pkgrel=4
pkgdesc="Library for the dynamic creation of images by programmers"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.libgd.org/"
license=('custom')
depends=('perl' 'libpng' 'fontconfig' 'libjpeg')
options=('!libtool')
source=("ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}.tar.bz2"
        'libpng14.patch')
md5sums=('e876979ca3130623a4e7866d9579171a'
         '7921556f4960e8d66cf4fb67ea7101b5')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"

  patch -Np1 -i ${srcdir}/libpng14.patch
  ./configure --prefix=/usr --without-xpm
  make
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}