# Description: SQL veritabanı motoru
# URL: http://www.sqlite.org/
# Packager: milisarge
# Depends on:  ncurses readline

name=sqlite
version=3.15.1
release=1
_version=$(printf "%i%.2i%.2i%.2i" ${version//./ })

source=(http://www.sqlite.org/2016/sqlite-autoconf-${_version}.tar.gz)

build () {
    cd sqlite-autoconf-${_version}
    
    CONFIG_SHELL=/bin/bash \
    CFLAGS="-DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 \
            -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1 \
             $CFLAGS" \
    ./configure --prefix=/usr
    
    make 
    make DESTDIR=$PKG install
}