# Contributor: Natanael Copa # Maintainer: Max Rees pkgname=elfutils pkgver=0.179 pkgrel=0 pkgdesc="Utilities to handle ELF object files and DWARF debugging information" url="https://sourceware.org/elfutils/" arch="all" license="GPL-3.0+ AND (GPL-2.0+ or LGPL-3.0+) AND LGPL-2.1+" depends="" makedepends="argp-standalone autoconf automake bsd-compat-headers bzip2-dev flex fts-dev musl-obstack-dev xz-dev zlib-dev" checkdepends="musl-dbg" subpackages="$pkgname-dev $pkgname-doc $pkgname-lang eu-libelf:libelf" source="https://sourceware.org/elfutils/ftp/$pkgver/$pkgname-$pkgver.tar.bz2 fix-aarch64_fregs.patch fix-uninitialized.patch getconf-long-bit.patch gnu-power-abi-fp.patch musl-asm-ptrace-h.patch musl-cdefs.patch musl-fts-obstack.patch musl-macros.patch musl-qsort_r.patch musl-strerror_r.patch musl-strndupa.patch test-disable-backtrace.patch error.h " prepare() { default_prepare autoreconf -vif cp "$srcdir"/error.h lib cp "$srcdir"/error.h src } build() { export CFLAGS="$CFLAGS -Wno-error" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --enable-deterministic-archives \ --disable-debuginfod \ --disable-symbol-versioning \ --with-biarch=no make } check() { make check } package() { make DESTDIR="$pkgdir" install } libelf() { pkgdesc="ELF object file access library (from elfutils)" mkdir -p "$subpkgdir"/usr mv "$pkgdir"/usr/lib "$subpkgdir"/usr } sha512sums="ff2d96ad1db08e3a2ddaa60bd5a05e9b61ffa71d646f889cebb6bef51322e874930809c6dd0a257ced8c6e8de4b59ecf13ca6741dc68f9400293208278a0c052 elfutils-0.179.tar.bz2 c3676b0b8b40d6e437f5d88c0d658dc0829ec97d1955e4bbf96f4cff9ee9001b8f2f06174450ae7aa5858b91c7905bdbd49073b561c346416132338a9c94731b fix-aarch64_fregs.patch 3a0996f33e485f4ed5fbb447e40be9ce078d2ad8a9d2e3bd4bc8295cbedbcd9f1799fafcbe36c060630e902054346b608770ce3d64a3d05af0128864f37f8353 fix-uninitialized.patch 85ff9ca71220878fb947012e300e381d4309ee46aad7056ed0f6269d21a259f64f61a35f059586ec7ee13399aaaaab5004616263cf6f030d7c28bb60fff2adf6 getconf-long-bit.patch 9426b9641c5f72d572f62aa0152b13c20fb71100815332bea5bdb24c3a63a9e98613e0de40da2699a1a3c0298a239adab1ab4ab9d5c83816668912f13a32605e gnu-power-abi-fp.patch 7c529f88dc248f657a8d690044560c20a222c5b37d0d7dcb057bf2eea8938c406cccd6129bce19542088511a026b233234c9a83933a525c4691810be9ca712bf musl-asm-ptrace-h.patch f061fa2a62593a77fdb70d69ac81624a718381e748483855cbcd50be9e9a6f21ae3feea8a567108044c4afe808cd6948e82a69ccd9f8739d8d2aaa469d2973cb musl-cdefs.patch 9b21ba63246b0bcc733c9fc1f88fca28d8c91753cd1703a0727777c044bec4001ff36ae90c74f57727e189e88350772934c9223b948e6524f9cf619dbc5abec1 musl-fts-obstack.patch 32b9ee6140ba0138a957422f452098caa5ebca850aa4705ffaf0bc2e91c9dd408a9d586007a1d186ec36ed12c9fcd6967f56e35a0587306781f6f7491a8c3ed9 musl-macros.patch 86550bc04a26e3cece6b08f0fce7db8667946cfbd5eed31cdd956856b6d6bd0c3dd2cc81283b482efd1ec62d3356aacce61210811e2002915e05fa9b80d983ab musl-qsort_r.patch a0d986100c8ff2ef0595645ec1b2eeb1d517b7442aef5f349ebf27fcb66c76e51fadeda25bed5f04b4bb16a61aa23ac6e86a1f34a0087d2136acf0f64c3fa4d1 musl-strerror_r.patch 83ad42f672e1d5ca479bc44166c423624ab14d70f74bd6f703ef5fd98694ae201db975026ae8bd507d87b038e3403d878c90da40cfcf6d2364bbd3cad8cedb5b musl-strndupa.patch 07f160808515b922b50cae5f8a2f3268ef371247a7d786a6232ebe95d3a82f97452d77d199ea036a8ee6ffbd3cd130acbbfdbf0473de96f8b11aa37627d688e1 test-disable-backtrace.patch b33d7f210b9652b7b919afb32b4674ca125b660bf5f81fafb4e4e8405ea16be74ce85f653e6c0ac83e5fff1b192e82e273c5b5baa3802fdc7602edfa1086936d error.h"