# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libksba
version=1.4.0
build=1sml
homepage="https://gnupg.org/software/libksba/index.html"
desc="X.509 & CMS library for S/MIME and TLS"
requires="libgpg-error"

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

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

build() {
  ./configure \
    --prefix= \
    --enable-shared=yes \
    --enable-static=no

  make
  make install DESTDIR=$pkg 

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
bcd4e83b6a8e6ae2d15de8670d923d085556c6617d3904afe9477eca11484ab3db0b7cd64ca2c06d7b1af5bf9b95fca502bf0f6f4c15290dd1e90a4c0d8363e6  libksba-1.4.0.tar.lz
"
