# Maintainer: PktSurf <smlinux@pktsurf.in>
app=makeself
version=2.2.0
build=1sml
homepage="https://github.com/megastep/makeself"
download="https://github.com/megastep/makeself/archive/refs/tags/release-$version.tar.gz"
desc="shell script that generates a self-extractable compressed tar archive from a directory" 
requires="bash"

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

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

build() {
  mkdir -p $pkg/bin
  cp makeself-header.sh makeself.sh makeself.lsm $pkg/bin/
  install -Dm 644 makeself.1 $pkg/share/man/man1/makeself.1

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
16ab58bd38d1eac8133f3028e420a11cf445836ef5981a5655bdef5a9108cf1b472aa8364e82ac92f38d2395522195006f9b8f6b78acae8895811c5ae99592a4  makeself-2.2.0.tar.lz
"
