APP=sqlite
VERSION=3320100
BUILD=1sml
HOMEPAGE="https://www.sqlite.org/"
DOWNLOAD="https://www.sqlite.org/2020/sqlite-autoconf-3320100.tar.gz"
DESC="simple, self contained database engine"
REQUIRES="readline zlib"

build() {
  mkandenterbuilddir
  rm -rf "$APP-autoconf-$VERSION"

  tar xf $SRCDIR/$APP-autoconf-$VERSION.tar.?z*
  cd "$APP-autoconf-$VERSION"
  fixbuilddirpermissions

  ./configure \
    --prefix="" \
    --disable-tcl \
    --disable-static

  make -j1
  make install DESTDIR=$PKG

  cp tea/license.terms $PKGDOCS/

  mkfinalpkg
}

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