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>
10 pkgname=lib32-$_pkgbasename
13 pkgdesc="A commandline option parser"
17 depends=('lib32-glibc' $_pkgbasename)
18 makedepends=('gcc-multilib')
20 source=(http://launchpad.net/$_pkgbasename/head/$pkgver/+download/$_pkgbasename-$pkgver.tar.gz)
21 md5sums=('3743beefa3dd6247a73f8f7a32c14c33')
24 cd $srcdir/$_pkgbasename-$pkgver
28 export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
30 ./configure --prefix=/usr --libdir=/usr/lib32 || return 1
35 cd $srcdir/$_pkgbasename-$pkgver
36 make DESTDIR=$pkgdir install || return 1
37 rm -rf $pkgdir/usr/{include,lib,share}
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
43 install -Dm644 $srcdir/$_pkgbasename-$pkgver/COPYING \
44 $pkgdir/usr/share/licenses/$pkgname/LICENSE || return 1