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
"
