# Maintainer: PktSurf <smlinux@pktsurf.in>
app=libtasn1
version=4.13
build=1sml
homepage="https://www.gnu.org/software/libtasn1/"
download="https://ftp.gnu.org/gnu/libtasn1/libtasn1-$version.tar.gz"
desc="Provides ASN.1 library used by GnuTLS and other crypto apps"
requires="musl"

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

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

build() {
  ./configure \
    --prefix= \
    --disable-static 

  make
  make install DESTDIR=$pkg

  cp COPYING* $pkgdocs/

  mkfinalpkg
}

sha512sums="
d063c1b8fc11f62d59ba162d6138148492cd9eb2a69487907d16f6bc0e2bf2645dc4313b1f85a27c8c1f8a69da7d332e4105fedb01bbb2103b93258c24bca95f  libtasn1-4.13.tar.lz
"
