app=slapt-get
version=0.11.1
build=1sml
homepage="https://github.com/jaos/slapt-get"
desc="An apt-like front-end to Slackware's pkgtools"
requires="curl libassuan"

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

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

  make
  install -Dm 644 src/slapt.h $pkg/include/slapt.h
  install -Dm 755 src/libslapt.so.0.11.1 $pkg/lib/libslapt.so.0.11.1
  (cd $pkg/lib ; ln -s libslapt.so.0.11.1 libslapt.so)
  install -Dm 755 slapt-get $pkg/bin/slapt-get
  install -Dm 644 doc/libslapt.3 $pkg/share/man/man3/libslapt.3
  install -Dm 644 doc/slapt-get.8 $pkg/share/man/man8/slapt-get.8
  install -Dm 644 $srcdir/example.slapt-getrc $pkg/etc/slapt-get/slapt-getrc
  mkdir -p $pkg/var/cache/slapt-get

  cp TODO COPYING README FAQ $pkgdocs/

  mkfinalpkg
}

sha512sums="
3a9bf702fabfe9a8a9e50ad24d8ebae8dddb73cfe1dd7823effcc3e391cb783456510b109ce870e141e45b0e7f640a6d56de2cf6cf791901d97e85361edb3aac  slapt-get-0.11.1.tar.gz
"
