APP=makeself
VERSION=2.2.0
BUILD=1sml
HOMEPAGE='https://github.com/megastep/makeself'
DOWNLOAD='https://github.com/megastep/makeself/archive/refs/tags/release-2.2.0.tar.gz'
DESC="shell script that generates a self-extractable compressed tar archive from a directory" 
REQUIRES="bash"

build() {
  mkandenterbuilddir
  rm -rf $APP-$VERSION

  tar xf $SRCDIR/$APP-$VERSION.tar.?z*
  cd $APP-$VERSION
  fixbuilddirpermissions

  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
"
