updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lib32-libxslt / PKGBUILD
blob735c35a1460f6f7150262ff522e4ae27198eff64
1 # $Id: PKGBUILD 26680 2010-09-15 22:51:35Z bluewind $
2 # Maintainer: Eric Belanger <eric@archlinux.org>
3 # Contributor: John Proctor <jproctor@prium.net>
5 _pkgbasename=libxslt
6 pkgname=lib32-$_pkgbasename
7 pkgver=1.1.26
8 pkgrel=5
9 pkgdesc="XML stylesheet transformation library (32-bit)"
10 arch=('x86_64')
11 url="http://xmlsoft.org/XSLT/"
12 license=('custom')
13 depends=('lib32-libxml2>=2.7.7' 'lib32-libgcrypt>=1.4.4' $_pkgbasename)
14 makedepends=(gcc-multilib)
15 options=('!libtool')
16 source=(ftp://xmlsoft.org/libxslt/${_pkgbasename}-${pkgver}.tar.gz)
17 md5sums=('e61d0364a30146aaa3001296f853b2b9')
19 build() {
20   export CC="gcc -m32"
21   export CXX="g++ -m32"
22   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
24   cd "${srcdir}/${_pkgbasename}-${pkgver}"
25   ./configure --prefix=/usr --libdir=/usr/lib32 --without-python
26   make
29 package() {
30   cd "${srcdir}/${_pkgbasename}-${pkgver}"
32   make DESTDIR="${pkgdir}" install
34   rm -rf "${pkgdir}"/usr/{include,share,bin}
35   mkdir -p "$pkgdir/usr/share/licenses"
36   ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"