upgpkg: ufw 0.36.2-1
[ArchLinux/community.git] / lib32-popt / trunk / PKGBUILD
blobe84e53162a743df9a1ecfb419d6c21fffa92b90d
1 # Maintainer: Felix Yan <felixonmars@archlinux.org>
2 # Contributor: Michael Lass <bevan@bi-co.net>
3 # Contributor: jospehgbr <rafael.f.f1@gmail.com>
4 # Contributor: coderoar <coderoar@gmail.com>
5 # Contributor: webjdm <web.jdm@gmail.com>
7 _pkgbase=popt
8 pkgname=lib32-${_pkgbase}
9 pkgver=1.19
10 pkgrel=1
11 pkgdesc="Commandline option parser (32 bit)"
12 arch=('x86_64')
13 url="http://rpm5.org"
14 license=('custom')
15 depends=('lib32-glibc' "${_pkgbase}")
16 source=(https://ftp.osuosl.org/pub/rpm/popt/releases/popt-1.x/popt-${pkgver}.tar.gz)
17 sha256sums=('c25a4838fc8e4c1c8aacb8bd620edb3084a3d63bf8987fdad3ca2758c63240f9')
19 build() {
20   export CC="gcc -m32"
22   cd ${_pkgbase}-${pkgver}
23   ./configure --prefix=/usr --libdir=/usr/lib32 --disable-nls
24   make
27 package() {
28   cd ${_pkgbase}-${pkgver}
29   make DESTDIR="${pkgdir}" pkgconfigdir='/usr/lib32/pkgconfig' install
31   rm -rf "${pkgdir}"/usr/{include,share}
32   install -dm755 "${pkgdir}"/usr/share/licenses
33   ln -s ${_pkgbase} "${pkgdir}"/usr/share/licenses/${pkgname}