summaryrefslogtreecommitdiff
path: root/extra/gd/PKGBUILD
blob: b4c26798650f4c98e89249928a311113185995ef (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
# $Id: PKGBUILD 189861 2013-07-10 07:26:52Z bpiotrowski $
# Maintainer: Eric Belanger <eric@archlinux.org>

pkgname=gd
pkgver=2.1.0
pkgrel=1
pkgdesc="Library for the dynamic creation of images by programmers"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.libgd.org/"
license=('custom')
depends=('libpng' 'fontconfig' 'libjpeg')
optdepends=('perl: bdftogd script')
options=('!libtool')
source=(https://bitbucket.org/libgd/gd-libgd/downloads/libgd-${pkgver}.tar.xz)
md5sums=('03588159bf4faab9079849c8d709acc6')

build() {
  cd libgd-${pkgver}
  ./configure --prefix=/usr --without-xpm
  make
}

check() {
  cd libgd-${pkgver}
  make check
}

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