summaryrefslogtreecommitdiff
path: root/extra/elfutils/PKGBUILD
blob: 78061031b4372b36ed0b20a7f39dee619e38a551 (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
49
50
51
52
# $Id: PKGBUILD 205875 2014-02-12 08:00:43Z lcarlier $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Contributor: Andrej Gelenberg <andrej.gelenberg@udo.edu>

pkgname=elfutils
pkgver=0.158
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}
        fix-run-backtrace-native-core-test.patch)
options=('staticlibs')
sha1sums=('09adbbf0f3a35bb1bcb77c2eaa40de8d3443af4d'
          'SKIP')

prepare() {
  cd ${pkgname}-${pkgver}

  patch -Np1 -i ../fix-run-backtrace-native-core-test.patch
}

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
}
sha1sums=('09adbbf0f3a35bb1bcb77c2eaa40de8d3443af4d'
          'SKIP'
          '8ecef640f3d1229cdf45ffda016a69848c18e61b')