app=strace
version=5.7
build=1sml
homepage="https://strace.io/"
download="https://strace.io/files/$version/strace-$version.tar.xz"
desc="linux system call tracing utility"
requires="perl"
noautoconfsite=1

build() {
  mkandenterbuilddir
  rm -rf $app-$version

  tar xf $srcdir/$app-$version.tar.?z*
  cd $app-$version
  fixbuilddirpermissions

  CFLAGS="$CFLAGS -Dsigcontext_struct=sigcontext" \
  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --enable-mpers=no

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
7e6a8f50792cdaa11aedcc8972a3f0143900fc0de0c8852e6796a884aada43fe11480b31cad9a27caee354d697746ff1f1b8e511855f01e0164ed745a044d0d7  strace-5.7.tar.lz
"
