# $Id: PKGBUILD 198810 2013-11-05 15:59:03Z lcarlier $ # Maintainer: Stéphane Gaudreault # Contributor: Andrej Gelenberg pkgname=elfutils pkgver=0.157 pkgrel=1 pkgdesc="Libraries and utilities to handle ELF object files and DWARF debugging information" arch=('i686' 'x86_64') url="https://fedorahosted.org/elfutils/" license=('LGPL3' 'GPL' 'GPL3') depends=('gcc-libs' 'zlib' 'bzip2' 'xz') provides=('libelf') replaces=('libelf') conflicts=('libelf') source=(https://fedorahosted.org/releases/e/l/elfutils/${pkgver}/elfutils-${pkgver}.tar.bz2{,.sig}) options=('staticlibs') sha1sums=('5e3767206c7f1b3bcfe33bce99fe09686ef165d2' 'SKIP') build() { cd ${pkgname}-${pkgver} CFLAGS+=" -g" # required for test-suite success ./configure --prefix=/usr --program-prefix="eu-" make } check() { cd ${pkgname}-${pkgver} make check } package() { cd ${pkgname}-${pkgver} make DESTDIR="${pkgdir}" install rm "${pkgdir}"/usr/lib/lib{asm,dw,elf}.a }