PKGBUILD 1.05 KB
Newer Older
1 2 3 4
# Maintainer: AlmAck <almack@chakraos.org>

_pkgbasename=elfutils
pkgname=lib32-elfutils
Luca Giambonini's avatar
Luca Giambonini committed
5
pkgver=0.170
Luca Giambonini's avatar
Luca Giambonini committed
6
pkgrel=2
7 8 9 10 11
pkgdesc="Collection of libraries for working with ELF object files and DWARF debugging information (32-bit)"
arch=('x86_64')
url="https://fedorahosted.org/elfutils/"
license=('LGPL3' 'GPL' 'GPL3')
depends=('lib32-bzip2' 'lib32-zlib' $_pkgbasename=$pkgver)
Luca Giambonini's avatar
Luca Giambonini committed
12
makedepends=('lib32-gcc-libs')
13 14
source=(https://fedorahosted.org/releases/e/l/elfutils/${pkgver}/elfutils-${pkgver}.tar.bz2{,.sig})
options=('staticlibs')
Luca Giambonini's avatar
Luca Giambonini committed
15
sha1sums=('aff6feac0ff69eb7b240babdf2918f640eadb032'
16 17
          'SKIP')
validpgpkeys=('47CC0331081B8BC6D0FD4DA08370665B57816A6A') # Mark J. Wielaard <mark@klomp.org>
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36

build() {
  cd ${srcdir}/${_pkgbasename}-${pkgver}
	
  export CC="gcc -m32"
  export CXX="g++ -m32"
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
  CFLAGS+=" -g"  # required for test-suite success
  
  ./configure --prefix=/usr --libdir=/usr/lib32
  make
}

package() {
  cd ${srcdir}/${_pkgbasename}-${pkgver}

  make DESTDIR=${pkgdir} install
  rm -rf ${pkgdir}/usr/{bin,include,share}
}