mirror of
https://gitdl.cn/https://github.com/chakralinux/lib32.git
synced 2025-01-24 09:52:15 +08:00
45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# Lib32 Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (x86_64): Giuseppe Calà <jiveaxe@gmail.com>
|
|
|
|
_pkgbasename=sqlite3
|
|
pkgname=lib32-sqlite3
|
|
_amalgamationver=3080803
|
|
pkgver=3.8.8.3
|
|
pkgrel=1
|
|
pkgdesc="A C library that implements an SQL database engine (32-bit)"
|
|
arch=('x86_64')
|
|
license=('custom')
|
|
url="http://www.sqlite.org/"
|
|
depends=('lib32-glibc' $_pkgbasename=$pkgver)
|
|
makedepends=('tcl' 'gcc-multilib' 'lib32-readline')
|
|
source=(http://www.sqlite.org/2015/sqlite-autoconf-${_amalgamationver}.tar.gz)
|
|
sha1sums=('2fe3f6226a2a08a2e814b97cd53e36bb3c597112')
|
|
|
|
build() {
|
|
cd ${srcdir}/sqlite-autoconf-${_amalgamationver}
|
|
|
|
export CC="gcc -m32"
|
|
export CXX="g++ -m32"
|
|
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
|
|
|
|
export LTLINK_EXTRAS="-ldl"
|
|
export CFLAGS="$CFLAGS -DSQLITE_ENABLE_FTS3=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY -DSQLITE_SECURE_DELETE"
|
|
|
|
./configure --prefix=/usr --libdir=/usr/lib32 \
|
|
--disable-static
|
|
|
|
make
|
|
}
|
|
|
|
|
|
package() {
|
|
cd ${srcdir}/sqlite-autoconf-${_amalgamationver}
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
|
|
rm -rf "${pkgdir}"/usr/{include,share,bin}
|
|
mkdir -p "$pkgdir/usr/share/licenses"
|
|
ln -s $_pkgbasename "$pkgdir/usr/share/licenses/$pkgname"
|
|
}
|