APP=strace
VERSION=5.7
BUILD=1sml
HOMEPAGE="https://strace.io/"
DOWNLOAD="https://strace.io/files/5.7/strace-5.7.tar.xz"
DESC="linux system call tracing utility"
REQUIRES="perl"
SM_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
"
