# Contributor: David Huffman # Maintainer: Natanael Copa pkgname=libdwarf pkgver=0.7.0 pkgrel=0 pkgdesc="Parsing library for DWARF2 and later debugging file format" url="https://www.prevanders.net/dwarf.html" arch="all" license="LGPL-2.1-only" makedepends="elfutils-dev meson python3 zlib-dev zstd-dev" subpackages="liblibdwarfp $pkgname-dev dwarf-tools dwarf-tools-doc" source="http://www.prevanders.net/libdwarf-$pkgver.tar.xz" # secfixes: # 0.6.0-r0: # - CVE-2019-14249 # - CVE-2015-8538 build() { abuild-meson \ -Db_lto=true \ -Ddwarfgen=true \ . output meson compile -C output } check() { meson test --no-rebuild --print-errorlogs -C output } package() { DESTDIR="$pkgdir" meson install --no-rebuild -C output } liblibdwarfp() { amove usr/lib/liblibdwarfp.so.* } tools() { license="GPL-2.0-only AND BSD-3-Clause" pkgdesc="Tools for interacting with DWARF2 and later debugging files" amove usr/bin usr/share/dwarfdump } sha512sums=" 0fe027e517551d138c15695ffdebe2dfbb0e89184fc0cc93bed5c342cd1cd901dc23f6b2aa8643ec8e62808cbdc0d94389fe44438c694d19c45c6a7367e8f7af libdwarf-0.7.0.tar.xz "