core/elfutils/PKGBUILD

47 lines
1.1 KiB
Bash
Raw Normal View History

2015-12-17 18:29:35 +08:00
pkgbase=elfutils
pkgname=(elfutils libelf)
2017-10-26 02:42:20 +08:00
pkgver=0.170
2018-01-19 04:54:25 +08:00
pkgrel=2
2015-12-17 18:29:35 +08:00
pkgdesc="Utilities to handle ELF object files and DWARF debugging information"
arch=('x86_64')
2017-10-26 02:42:20 +08:00
url="https://sourceware.org/elfutils/"
2015-12-17 18:29:35 +08:00
license=('LGPL3' 'GPL' 'GPL3')
depends=('gcc-libs' 'zlib' 'bzip2' 'xz')
options=('staticlibs')
source=(https://fedorahosted.org/releases/e/l/elfutils/${pkgver}/elfutils-${pkgver}.tar.bz2{,.sig})
2017-10-26 02:42:20 +08:00
sha1sums=('aff6feac0ff69eb7b240babdf2918f640eadb032'
2015-12-17 18:29:35 +08:00
'SKIP')
validpgpkeys=('47CC0331081B8BC6D0FD4DA08370665B57816A6A') # Mark J. Wielaard <mark@klomp.org>
2012-08-14 17:55:32 +08:00
build() {
2015-12-17 18:29:35 +08:00
cd ${pkgbase}-${pkgver}
CFLAGS+=" -g" # required for test-suite success
2015-12-17 18:29:35 +08:00
./configure --prefix=/usr --program-prefix="eu-" --enable-deterministic-archives
make
2012-08-14 17:55:32 +08:00
}
check() {
2015-12-17 18:29:35 +08:00
cd ${pkgbase}-${pkgver}
make check
}
2015-12-17 18:29:35 +08:00
package_elfutils() {
depends=("libelf=$pkgver-$pkgrel")
cd ${pkgbase}-${pkgver}
make DESTDIR="${pkgdir}" install
mkdir "${srcdir}"/libelf
mv "${pkgdir}"/usr/{lib,include} "${srcdir}/libelf"
}
2012-08-14 17:55:32 +08:00
2015-12-17 18:29:35 +08:00
package_libelf() {
pkgdesc="Libraries to handle ELF object files and DWARF debugging information"
mv libelf "${pkgdir}/usr"
}