# $Id: PKGBUILD 149338 2012-02-06 20:53:31Z stephane $ # Maintainer: Allan McRae # Contributor: Andrej Gelenberg pkgname=elfutils pkgver=0.152 pkgrel=2 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') #optdepends=('zlib' 'xz' 'bzip2') provides=('libelf') replaces=('libelf') conflicts=('libelf') 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=('39739ed58a0fa1862eff8735f111fe5c' '687eea13e5393a6a6074740ad31c3893') build() { cd "${srcdir}/${pkgname}-${pkgver}" for patch in $(cat ../debian/patches/series) ; do patch -Np1 -i "../debian/patches/$patch" done ./configure --prefix=/usr --program-prefix="eu-" make make check } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" install }