# Maintainer: Natanael Copa pkgname=strace pkgver=5.2 pkgrel=0 pkgdesc="Diagnostic, debugging and instructional userspace tracer" url="https://strace.io" arch="all" # disable checks for now, due to testsuite failure options="!check" license="BSD-3-Clause" depends="" makedepends="linux-headers autoconf automake gawk" subpackages="$pkgname-doc" source="https://github.com/strace/strace/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz disable-fortify.patch fix-ppc-pt-regs-collision.patch nlattr-fix.patch " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" case "$CLIBC" in musl) export CFLAGS="$CFLAGS -Dsigcontext_struct=sigcontext" ;; esac ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var \ --enable-mpers=no make } check() { cd "$builddir" make check } package() { cd "$builddir" make -j1 DESTDIR="$pkgdir" install } sha512sums="41bea20215fa80ad90a5d49c41944e02774e715efda5e563b3714e5800933a5fca4a2392634193cf49c0752321a39e0c185bdbc9cfb8ee053b09a6bd5723da35 strace-5.2.tar.xz 273b92ebf0069f19bef7ec26c7860e2af7ef01e782255c70ded1ae5e967f8f6bf031ecba96612c6083bf58f46278ba4ab3ec0fb35b08c8c8d668191f97adee52 disable-fortify.patch c5ba64a0e4686aeee5ceef099f1bedfef15fc79636249f168352ee10eb87bd788006d9a361e2b3819381bd1810c8b2bfda73b765c9781386737e19b6a037e93f fix-ppc-pt-regs-collision.patch 44b1872cf996caa4970fa6c2875a3a2cffe4a38455e328d968bd7855ef9a05cf41190794dc137bc8667576635f5271057cf0e6cde9a6c7aee66afd1dba9bdba0 nlattr-fix.patch"