updated on Thu Jan 12 20:00:29 UTC 2012
[aur-mirror.git] / lib32-libxpm / PKGBUILD
blob4535195def3d82fdbfd4f33a28c673c657baf68f
1 # $Id: PKGBUILD 35279 2010-12-18 01:24:10Z heftig $
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 _pkgbasename=libxpm
4 pkgname=lib32-$_pkgbasename
5 pkgver=3.5.9
6 pkgrel=1
7 pkgdesc="X11 pixmap library (32-bit)"
8 arch=(x86_64)
9 license=('custom')
10 url="http://xorg.freedesktop.org/"
11 depends=('lib32-libxt' 'lib32-libxext' $_pkgbasename)
12 makedepends=('xorg-util-macros' gcc-multilib)
13 options=('!libtool')
14 source=(${url}/releases/individual/lib/libXpm-${pkgver}.tar.bz2)
15 sha1sums=('38258a1d589d3f157e0338d0fd13eec11bc4a39b')
17 build() {
18   export CC="gcc -m32"
19   export CXX="g++ -m32"
20   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
22   cd "${srcdir}/libXpm-${pkgver}"
23   ./configure --prefix=/usr --sysconfdir=/etc --disable-static \
24     --libdir=/usr/lib32
25   make
28 package() {
29   cd "${srcdir}/libXpm-${pkgver}"
31   make DESTDIR="${pkgdir}" install
33   rm -rf "${pkgdir}"/usr/{include,share,bin}
34   mkdir -p "$pkgdir/usr/share/licenses"
35   ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"