Files
SimpleLinux/scripts/libsqlite3.sh
T

30 lines
935 B
Bash

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