# Maintainer: PktSurf <smlinux@pktsurf.in>
app=strace
version=6.1
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

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

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

build() {
  ./configure \
    --prefix="" \
    --enable-mpers=no

  make
  make install DESTDIR=$pkg

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
fbf80024d05585535e8c9cf40fa3f033e219b666aaa72511d964aee83f0d1f61c44110194b4104c1ab637d8bac1d59dae4a429c7d7f17965159ad46b50172270  strace-6.1.tar.lz
"
