# $Id: PKGBUILD 157084 2012-04-23 13:56:25Z allan $ # Maintainer: # Contributor: Andrej Gelenberg pkgname=elfutils pkgver=0.153 pkgrel=1 pkgdesc="Collection of libraries and utilities for working with ELF object files and DWARF debugging information" arch=('i686' 'x86_64' 'mips64el') url="https://fedorahosted.org/elfutils/" license=('GPL2') depends=('glibc') provides=('libelf') replaces=('libelf') conflicts=('libelf') options=('!makeflags') source=(https://fedorahosted.org/releases/e/l/elfutils/${pkgver}/elfutils-${pkgver}.tar.bz2 http://cdn.debian.net/debian/pool/main/e/elfutils/elfutils_${pkgver}-1.debian.tar.gz) md5sums=('289a146182bc29f0236eaa15d8ebdf98' '3bcccdf802f0a15a55543b0931c480dd') build() { cd "${srcdir}/${pkgname}-${pkgver}" for patch in $(cat ../debian/patches/series) ; do patch -Np1 -i "../debian/patches/$patch" done CFLAGS+=" -g" # required for test-suite success ./configure --prefix=/usr --program-prefix="eu-" make } check() { cd "${srcdir}/${pkgname}-${pkgver}" sed -i "s#./alldts#testrun ./alldts#" tests/run-alldts.sh make check } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install }