[arch-commits] Commit in elfutils/trunk (PKGBUILD)
Jan Steffens
heftig at archlinux.org
Fri Sep 25 12:15:14 UTC 2015
Date: Friday, September 25, 2015 @ 14:15:14
Author: heftig
Revision: 247385
split libelf and enable deterministic archives
Modified:
elfutils/trunk/PKGBUILD
----------+
PKGBUILD | 32 ++++++++++++++++++++++----------
1 file changed, 22 insertions(+), 10 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-25 12:02:47 UTC (rev 247384)
+++ PKGBUILD 2015-09-25 12:15:14 UTC (rev 247385)
@@ -1,38 +1,50 @@
# $Id$
-# Maintainer: Stéphane Gaudreault <stephane at archlinux.org>
+# Maintainer: Laurent Carlier <lordheavym at gmail.com>
+# Contributor: Stéphane Gaudreault <stephane at archlinux.org>
# Contributor: Andrej Gelenberg <andrej.gelenberg at udo.edu>
-pkgname=elfutils
+pkgbase=elfutils
+pkgname=(elfutils libelf)
pkgver=0.163
-pkgrel=1
-pkgdesc="Libraries and utilities to handle ELF object files and DWARF debugging information"
+pkgrel=2
+pkgdesc="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')
+options=('staticlibs')
source=(https://fedorahosted.org/releases/e/l/elfutils/${pkgver}/elfutils-${pkgver}.tar.bz2{,.sig})
-options=('staticlibs')
sha1sums=('7931b4961364a8a17c708138c70c552ae2881227'
'SKIP')
validpgpkeys=('47CC0331081B8BC6D0FD4DA08370665B57816A6A') # Mark J. Wielaard <mark at klomp.org>
build() {
- cd ${pkgname}-${pkgver}
+ cd ${pkgbase}-${pkgver}
CFLAGS+=" -g" # required for test-suite success
- ./configure --prefix=/usr --program-prefix="eu-"
+ ./configure --prefix=/usr --program-prefix="eu-" --enable-deterministic-archives
make
}
check() {
- cd ${pkgname}-${pkgver}
+ cd ${pkgbase}-${pkgver}
make check
}
-package() {
- cd ${pkgname}-${pkgver}
+package_elfutils() {
+ depends=("libelf=$pkgver-$pkgrel")
+ cd ${pkgbase}-${pkgver}
+
make DESTDIR="${pkgdir}" install
+
+ mkdir "${srcdir}"/libelf
+ mv "${pkgdir}"/usr/{lib,include} "${srcdir}/libelf"
}
+
+package_libelf() {
+ pkgdesc="Libraries to handle ELF object files and DWARF debugging information"
+ mv libelf "${pkgdir}/usr"
+}
More information about the arch-commits
mailing list