pkgname=libelf pkgbase=elfutils pkgver=0.192 pkgrel=1 pkgdesc="Handle ELF object files and DWARF debugging information (libraries)" arch=('x86_64') url="https://sourceware.org/elfutils/" license=('GPL-2.0-or-later OR LGPL-3.0-or-later') depends=('bzip2' 'glibc' 'xz' 'zlib' 'zstd') source=(https://sourceware.org/elfutils/ftp/${pkgver}/${pkgbase}-${pkgver}.tar.bz2) sha256sums=(616099beae24aba11f9b63d86ca6cc8d566d968b802391334c91df54eab416b4) build() { cd ${pkgbase}-${pkgver} # fat-lto-objects is required for non-mangled .a files in libelf CFLAGS+=" -ffat-lto-objects" CFLAGS+=" -g" ./configure \ --disable-debuginfod \ --enable-libdebuginfod=dummy \ ${configure_options} make } package() { cd ${pkgbase}-${pkgver} make -C libelf DESTDIR=${pkgdir} install install -Dvm644 config/libelf.pc -t ${pkgdir}/usr/lib64/pkgconfig }