updated on Thu Jan 19 12:17:07 UTC 2012
[aur-mirror.git] / lib32-popt / PKGBUILD
blob50d00a34d7ef5075c4f27f4e44f59f8ec341bd39
1 # Maintainer: Michael Lass <bevan@bi-co.net>
2 # Contributor: Andrea Scarpino <andrea@archlinux.org>
3 # Contributor: dorphell <dorphell@archlinux.org>
4 # Contributor: Judd Vinet <jvinet@zeroflux.org>
5 # Contributor: John Proctor <jproctor@prium.net>
6 # Contributor: webjdm <web.jdm@gmail.com>
7 # Contributor: coderoar <coderoar@gmail.com>
9 _pkgbasename=popt
10 pkgname=lib32-$_pkgbasename
11 pkgver=1.16
12 pkgrel=5
13 pkgdesc="A commandline option parser"
14 arch=('x86_64')        
15 url="http://rpm5.org"
16 license=('custom')
17 depends=('lib32-glibc' $_pkgbasename)
18 makedepends=('gcc-multilib')
19 options=('!libtool')
20 source=(http://launchpad.net/$_pkgbasename/head/$pkgver/+download/$_pkgbasename-$pkgver.tar.gz)
21 md5sums=('3743beefa3dd6247a73f8f7a32c14c33')
23 build() {
24   cd $srcdir/$_pkgbasename-$pkgver
26   export CC="gcc -m32"
27   export CXX="g++ -m32"
28   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
30   ./configure --prefix=/usr --libdir=/usr/lib32 || return 1
31   make || return 1
34 package() {
35   cd $srcdir/$_pkgbasename-$pkgver
36   make DESTDIR=$pkgdir install || return 1
37   rm -rf $pkgdir/usr/{include,lib,share}
38   
39   ln -sf libpopt.so.0 ${pkgdir}/usr/lib32/libpopt.so
40   ln -sf libpopt.so.0.0.0 ${pkgdir}/usr/lib32/libpopt.so.0
42   # install license
43   install -Dm644 $srcdir/$_pkgbasename-$pkgver/COPYING \
44     $pkgdir/usr/share/licenses/$pkgname/LICENSE || return 1