Files
2026-03-06 18:01:24 +07:00

26 lines
624 B
Bash

#!/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}"
}