# Maintainer: PktSurf <smlinux@pktsurf.in>
app=pax-utils
version=1.3.7
build=1sml
homepage="https://github.com/gentoo/pax-utils"
download="https://github.com/gentoo/pax-utils/archive/refs/tags/v$version.tar.gz"
desc="ELF utilities for performing security checks on files"
requires="pyelftools"
   
prepbuilddir() {
  mkandenterbuilddir
  rm -rf $app-$version

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

build() {
  mkdir smbuild && cd smbuild
  meson .. \
    --prefix=/

  ninja
  DESTDIR="$pkg" ninja install

  cp ../COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
64d61169cebf013401de442bbf2deae4b25eb3d07c90643775ea6443005b16783f41ceb41f398850507ed24c4a2d2c3f8552e047a574d884fbf314145bb8e6f9  pax-utils-1.3.7.tar.lz
"
