# Maintainer: PktSurf <smlinux@pktsurf.in>
app=sqlite
version=3320100
build=2sml
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 -j1
  make install DESTDIR=$pkg

  cp tea/license.terms $pkgdocs/

  mkfinalpkg
}

sha512sums="
12b463c0749403b22c160ebbea2e41434968167b9e0f95d1772b2043d791130c7a73726f8be68f8a1760e0c94b8f5b0ca6666b9de90e9ad7ae4446c33c7c4776  sqlite-autoconf-3320100.tar.lz
"
