#!/bin/bash . ./scripts/colors.sh . ./scripts/funcs.sh . ./scripts/config.sh libsqlite3() { pkgname=libsqlite3 pkgver=3.10.0 giturl=https://github.com/LuaDist/libsqlite3.git print_info "** Building and installing ${pkgname}" mkdir -p $build/${pkgname} cd $build/${pkgname} git clone ${giturl} check $? "Download ${pkgname}" cd ${pkgname} ./configure \ --host=${CROSS_COMPILE} \ --prefix=/usr check $? "Configure ${pkgname}" make $makeflags check $? "Build ${pkgname}" make DESTDIR=$rootfspath install check $? "Installing to rootfs ${pkgname}" }