updated openssl and added libsqlite3

This commit is contained in:
wt
2025-09-01 14:25:15 +07:00
parent 178dea9592
commit bf4e87d7fd
8 changed files with 42 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
#!/bin/bash
. ./scripts/colors.sh
. ./scripts/funcs.sh
. ./scripts/config.sh
libsqlite3() {
pkgname=libsqlite3
pkgver=3.10.0
printf "$GREEN** Building and installing ${pkgname}\n$RESET"
[ ! -d $build/${pkgname} ] && mkdir $build/${pkgname}
cd $build/${pkgname}
git clone https://github.com/LuaDist/libsqlite3.git
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}"
${CROSS_COMPILE}-strip --strip-unneeded $rootfspath/usr/lib/*
rm -rvf $rootfspath/usr/lib/pkgconfig
find $rootfspath -type f -name "*.a" -delete
find $rootfspath -type f -name "*.la" -delete
rm -rvf $rootfspath/usr/include $rootfspath/usr/share/man $rootfspath/usr/share/doc
}