summaryrefslogtreecommitdiff
path: root/extra/elfutils/PKGBUILD
blob: f9bfb214267d602d58d75d666aefb3819ac98afe (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# $Id: PKGBUILD 163718 2012-07-18 03:05:26Z eric $
# Maintainer: 
# Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>

pkgname=elfutils
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' 'mips64el')
url="https://fedorahosted.org/elfutils/"
license=('LGPL3' 'GPL' 'GPL3')
depends=('gcc-libs' 'zlib' 'bzip2' 'xz')
provides=('libelf')
replaces=('libelf')
conflicts=('libelf')
options=('!makeflags')
source=(https://fedorahosted.org/releases/e/l/elfutils/${pkgver}/elfutils-${pkgver}.tar.bz2{,.sig} \
        elfutils-0.154-binutils-pr-ld-13621.patch
	http://cdn.debian.net/debian/pool/main/e/elfutils/elfutils_0.153-1.debian.tar.gz)
sha1sums=('3a92a6f636cc3d14d4b3b00ba5c1e88a2a8d510b'
          '956461d44b03823e0b448e78b1f4aa25ef269e1e'
          '09681b728edb86c77eed47286554bef048f3507f'
          'ff79e1438275dffb2f5b15a58bff9b0d083a3de0')

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

  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
}