# Maintainer: PktSurf <smlinux@pktsurf.in>
app=sqlite
version=3430100
build=1sml
homepage="https://www.sqlite.org/"
download="https://www.sqlite.org/2020/sqlite-autoconf-$version.tar.gz"
desc="Simple, self contained database engine"
requires="readline zlib"

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

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

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

  make
  make install DESTDIR=$pkg

  cp tea/license.terms $pkgdocs/

  mkfinalpkg
}

sha512sums="
aab2cdb2cf073d0ef804c9340c2b55f6bf3923eb2563ff4b1d6ebd61c3927ffc4ba912f0cdf2ebcfea9c6a033344f1a8611b1a052b407771a304cf1c4b5ca590  sqlite-autoconf-3430100.tar.gz
"