updated on Tue Jan 10 04:01:21 UTC 2012
[aur-mirror.git] / lib32-elfutils / PKGBUILD
blob9324b3ff5777cc27711f007f8b6cc1c567ca99b5
1 # Maintainer: Timothy Redaelli <timothy.redaelli@gmail.com>
2 # Contributor: TryA <tryagainprod {at} gmail.com>
3 # Contributor: Allan McRae <allan@archlinux.org>
4 # Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>
6 _pkgbasename=elfutils
7 pkgname=lib32-elfutils
8 pkgver=0.152
9 pkgrel=1
10 pkgdesc="Collection of libraries for working with ELF object files and DWARF debugging information (32-bit)"
11 arch=('x86_64')
12 url="https://fedorahosted.org/elfutils/"
13 license=('GPL2')
14 depends=('lib32-bzip2' 'lib32-zlib')
15 makedepends=('gcc-multilib')
16 provides=('lib32-libelf')
17 replaces=('lib32-libelf')
18 conflicts=('lib32-libelf')
19 source=(https://fedorahosted.org/releases/e/l/elfutils/${pkgver}/elfutils-${pkgver}.tar.bz2)
20 md5sums=('39739ed58a0fa1862eff8735f111fe5c')
22 build() {
23   export CC="${CC:-gcc} -m32"
24   export CXX="${CXX:-g++} -m32"
25   export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
27   cd ${srcdir}/${_pkgbasename}-${pkgver}
28   ./configure --prefix=/usr --libdir=/usr/lib32
29   make
32 check() {
33   cd ${srcdir}/${_pkgbasename}-${pkgver}
34   make check
37 package() {
38   cd ${srcdir}/${_pkgbasename}-${pkgver}
39   make DESTDIR=${pkgdir} install
40   rm -rf ${pkgdir}/usr/{bin,include,share}