# Maintainer: PktSurf <smlinux@pktsurf.in>
app=sane-frontends
version=1.0.14
build=1sml
homepage="http://www.sane-project.org"
download="https://gitlab.com/sane-project/frontends/uploads/14e5c5a9205b10bd3df04501852eab28/sane-frontends-$version.tar.gz"
desc="Frontend for the SANE image scanning library"
requires="sane-backends"

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

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

build() {
  ./configure \
    --prefix="" \
    --sysconfdir=/etc \
    --mandir=/share/man \
    $builddist

  make
  make install DESTDIR=$pkg 

  cp COPYING $pkgdocs/

  mkfinalpkg
}

sha512sums="
07aefc5339ea4b069ba9966b59f9338007502cf0990912faa6d61eea6ac1fb9126e7274cff1eff936c0d6695f142bf2a86df56adc7008af38a07adcc45f433b5  sane-frontends-1.0.14.tar.lz
"
