# Maintainer: A. Wilcox pkgname=elfutils pkgver=0.192 pkgrel=0 pkgdesc="Libraries and utilities to manipulate ELF objects" url="https://sourceware.org/elfutils/" arch="all" license="GPL-2.0+ AND LGPL-3.0+ AND GPL-3.0+" depends="" checkdepends="musl-dbg shimmy>0.7" makedepends="argp-standalone-dev bzip2-dev fts-dev libarchive-dev m4 musl-obstack-dev xz-dev zlib-dev zstd-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang $pkgname-libs" source="https://sourceware.org/elfutils/ftp/$pkgver/elfutils-$pkgver.tar.bz2 aarch64-regs.patch backtrace-signal.patch backtrace-cfi-fault.patch elfcompress-wildcard.patch fnm.patch skip-run-deleted.patch skip-run-backtrace-native-core.patch skip-run-backtrace-native.patch skip-run-elflint-self.patch skip-run-reverse-sections-self.patch skip-run-strip-strmerge.patch error.h " prepare() { default_prepare mkdir "$srcdir"/vendor-error ln -s "$srcdir"/error.h "$srcdir"/vendor-error/error.h } build() { export CFLAGS="$CFLAGS -I$srcdir/vendor-error -Og" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ ac_cv_header_error_h=yes make } check() { env LD_LIBRARY_PATH="${builddir}/libelf:${builddir}/libebl:${builddir}/libdw:${builddir}/libasm" \ LC_ALL="C" \ make check VERBOSE=1 } package() { make DESTDIR="$pkgdir" install } sha512sums="543188f5f2cfe5bc7955a878416c5f252edff9926754e5de0c6c57b132f21d9285c9b29e41281e93baad11d4ae7efbbf93580c114579c182103565fe99bd3909 elfutils-0.192.tar.bz2 1eb5975bed830dc83e9375f526176276a5254dd9351853dc4c2c4be66246ea74bb65ae5352ea9f3d7fdf70f8af2b9d953e921dbce7cf94a906cd22272db6adab aarch64-regs.patch 17fc3bc814300e07f6087ce010c43bb67d6b0c8f3bf34ef57815a322a6ef9fbec5929b08641842b0f097d1ff2fdc865c94d6c4e84e357ce0b37e0c9b427024a7 backtrace-signal.patch 90f8b6b894e79334c66522675e47debb60266fcdb7124bfd9eb0938a276ad4168bee734d3e125b56c76f20b849aa70ac8181382f01313264ecca08225e5fe411 backtrace-cfi-fault.patch 7fa88ba58fb5eb7c835074dcd1db19591a001bb713c472f08eba3a94d80129011365f9cad70b04ec162897a13e4d2cc2d05ccec9130fd51b163621bb6e7ecc9d elfcompress-wildcard.patch 95c46254dbd6ad358c29d2f9577ccb9ce884e51b3d7587b7d91c02c1b4e54378ceba707a9d3800b1a7a15b7a4ba8bce6e7601fb6eb3cc93bbe82d484fc16103e fnm.patch a85900ec75e72cc394b7e188f1f93dbf8b0555987e122cf4cb3369ecc8446d7af7d078c5e387f550806f5a738dcb12d4dde4d4313ed6ffb56d1de0481249016d skip-run-deleted.patch 339da4817c86d40b0581530bdd05006371d37568f66f766bf1307c65af941dd3ee373ee5d2dd32b0381de1a0649b0c4349c2c7f842adcec911c89f6a24cb0c99 skip-run-backtrace-native-core.patch 4300f063886941213caa4306221424cdc65a6a1ed43efec6ab3303ccddfd589efd14359c3347ce6dd6ac348514da0bfb38a3f0a034e5d09fad3322f8be7afae2 skip-run-backtrace-native.patch eda7d5203019cf6f5412c8a0bb3c6406150a70ad883682cbd38e61f183a2c4246ab94c29f46d2886beb3152e7b78bf79cf89078fb9e63f594f4906f94a0e77f7 skip-run-elflint-self.patch 4c3f27bcbd7aed6a19c4597081b5b7b3881e4e25bb7274597f093793112c0ea316e5b282b9b10fe739b47925dea17a58524a2a26901bbc8008541fd2c6c7ae08 skip-run-reverse-sections-self.patch 034c0d320ea47b60da58b142a78dc9eb24d65d4cd61e3dc1e339bbbf9d0346d1be2a68ed7a77c997a32b33b813f5fdb5a9d7a1523a5c0624ae8140949115590d skip-run-strip-strmerge.patch b33d7f210b9652b7b919afb32b4674ca125b660bf5f81fafb4e4e8405ea16be74ce85f653e6c0ac83e5fff1b192e82e273c5b5baa3802fdc7602edfa1086936d error.h"