# Maintainer: Natanael Copa pkgname=strace pkgver=4.18 pkgrel=0 pkgdesc="A useful diagnositic, instructional, and debugging tool" url="https://strace.io/" arch="all" license="BSD" depends="" makedepends="linux-headers autoconf automake" subpackages="$pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/strace/$pkgname/archive/v$pkgver.tar.gz fix-ppc-pt-regs-collision.patch " builddir="$srcdir/$pkgname-$pkgver" build() { cd "$builddir" case "$CLIBC" in musl) export CFLAGS="$CFLAGS -Dsigcontext_struct=sigcontext" ;; esac case "$CARCH" in s390x) # __SIGNAL_FRAMESIZE is defined in asm/sigcontext.h # but including it would make conflict with struct sigcontext # since we compile with it in musl. # Temporarily add this until musl upstream has a proper fix # for struct sigcontext. export CFLAGS="$CFLAGS -D__SIGNAL_FRAMESIZE=160" ;; esac ./bootstrap ac_cv_have_long_long_off_t=yes \ ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --localstatedir=/var make } package() { cd "$builddir" make -j1 DESTDIR="$pkgdir" install } sha512sums="744792cdb135b209a15413fe459c21cda74342d4b93d335a174dd788a18b4c61e99cf9c740968956c54ab184ad83b000e9de9003be7c19965e5e67575fdb8b2a strace-4.18.tar.gz b70cee89dd49a2b5a69dc2a56c3a11169d3306e1a73981155188b574486965c034aa52b4ac1c6edff5ef55c9d52f27750acb242fac095a8a9f69689b51b3fad1 fix-ppc-pt-regs-collision.patch"