From 59ed8aa2a08a519c1f30dd7c9f5f1c56207a86a5 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Tue, 21 Aug 2012 19:17:14 -0500
Subject: elfutils  .154

---
 abs/core/elfutils/PKGBUILD | 39 +++++++++++++++++++++++----------------
 1 file changed, 23 insertions(+), 16 deletions(-)

diff --git a/abs/core/elfutils/PKGBUILD b/abs/core/elfutils/PKGBUILD
index 9bf4739..8cbee1e 100644
--- a/abs/core/elfutils/PKGBUILD
+++ b/abs/core/elfutils/PKGBUILD
@@ -1,32 +1,39 @@
-# $Id: PKGBUILD 96834 2010-10-25 06:15:37Z pierre $
-# Maintainer: Allan McRae <allan@archlinux.org>
+# $Id: PKGBUILD 163718 2012-07-18 03:05:26Z eric $
+# Maintainer: 
 # Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>
 
 pkgname=elfutils
-pkgver=0.149
-pkgrel=2
+pkgver=0.154
+pkgrel=1
 pkgdesc="Collection of libraries and utilities for working with ELF object files and DWARF debugging information"
 arch=('i686' 'x86_64')
 url="https://fedorahosted.org/elfutils/"
-license=('GPL2')
-depends=('glibc')
-#optdepends=('zlib' 'xz' 'bzip2')
+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)
-md5sums=('8690cfcde541c83c0549623ea33c75f6')
+options=('!makeflags')
+source=(https://fedorahosted.org/releases/e/l/elfutils/${pkgver}/elfutils-${pkgver}.tar.bz2{,.sig} \
+        elfutils-0.154-binutils-pr-ld-13621.patch)
+sha1sums=('3a92a6f636cc3d14d4b3b00ba5c1e88a2a8d510b'
+          '956461d44b03823e0b448e78b1f4aa25ef269e1e'
+          '09681b728edb86c77eed47286554bef048f3507f')
 
-build()
-{
-  cd ${srcdir}/${pkgname}-${pkgver}
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  CFLAGS+=" -g"  # required for test-suite success
+  patch -p1 -i "${srcdir}/elfutils-0.154-binutils-pr-ld-13621.patch"
   ./configure --prefix=/usr --program-prefix="eu-"
   make
+}
+
+check() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
   make check
 }
 
-package()
-{
-  cd ${srcdir}/${pkgname}-${pkgver}
-  make DESTDIR=${pkgdir} install
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
 }
-- 
cgit v0.12

