summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8a4fec959f71c9bdce8891684394f55e449dc150 (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
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=elfutils-git
pkgver=0.170.r8.g760925bc
pkgrel=1
pkgdesc="Utilities and libraries to handle ELF object files and DWARF debugging information"
arch=('i686' 'x86_64')
url="https://sourceware.org/elfutils/"
license=('GPL3')
depends=('glibc' 'bzip2' 'xz' 'zlib' 'sh')
makedepends=('git')
provides=('elfutils' 'libelf')
conflicts=('elfutils' 'libelf')
options=('staticlibs')
source=("git+https://sourceware.org/git/elfutils.git")
sha256sums=('SKIP')


pkgver() {
  cd "elfutils"

  git describe --long --tags | sed 's/^elfutils-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "elfutils"

  autoreconf -fi
  CFLAGS+=" -g"  # required for test-suite success
  ./configure --prefix="/usr" --program-prefix="eu-" --enable-maintainer-mode
  make
}

check() {
  cd "elfutils"

  make check
}

package() {
  cd "elfutils"

  make DESTDIR="$pkgdir" install
}