updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / lib32-gd / PKGBUILD
blob6ac53b3aa9b3c6af496260ebfd0c1c24729e40f0
1 # Maintainer: josephgbr <rafael.f.f1@gmail.com>
3 _pkgbase=gd
4 pkgname=lib32-${_pkgbase}
5 pkgver=2.0.36RC1
6 pkgrel=4
7 pkgdesc="Library for the dynamic creation of images by programmers (32 bit)"
8 arch=('x86_64')
9 url="http://www.libgd.org/"
10 license=('custom')
11 depends=('lib32-libpng' 'lib32-fontconfig' 'lib32-libjpeg' "${_pkgbase}")
12 makedepends=('gcc-multilib') #perl
13 options=('!libtool')
14 source=("ftp://ftp.archlinux.org/other/${_pkgbase}/${_pkgbase}-${pkgver}.tar.bz2"
15         'libpng14.patch')
16 md5sums=('e876979ca3130623a4e7866d9579171a'
17          '7921556f4960e8d66cf4fb67ea7101b5')
19 build() {
20   export CC='gcc -m32'
21   export CXX='g++ -m32'  
22   export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
23   
24   cd "${srcdir}/${_pkgbase}-${pkgver}"
25   patch -Np1 -i "${srcdir}/libpng14.patch"
26   ./configure --prefix=/usr --without-xpm --libdir=/usr/lib32
27   make
30 package() {
31   cd "${srcdir}/${_pkgbase}-${pkgver}"
32   make DESTDIR="${pkgdir}" install
33   install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
34   rm -rf "$pkgdir/usr"/{bin,include}