56 lines
1.3 KiB
Text
56 lines
1.3 KiB
Text
# Contributor: wener <wenermail@gmail.com>
|
|
# Maintainer: wener <wenermail@gmail.com>
|
|
pkgname=sqlcipher
|
|
pkgver=4.5.4
|
|
pkgrel=1
|
|
pkgdesc="SQLCipher is an SQLite extension that provides 256 bit AES encryption of database files."
|
|
url="https://www.zetetic.net/sqlcipher/"
|
|
arch="all"
|
|
license="BSD-3-Clause"
|
|
makedepends="openssl-dev>3 tcl-dev readline-dev zlib-dev"
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-tcl"
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/sqlcipher/sqlcipher/archive/v$pkgver.tar.gz"
|
|
|
|
build() {
|
|
export CFLAGS="$CFLAGS \
|
|
-DSQLITE_HAS_CODEC \
|
|
-DSQLCIPHER_TEST \
|
|
-DSQLITE_ENABLE_COLUMN_METADATA \
|
|
-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT \
|
|
"
|
|
export LDFLAGS="$LDFLAGS -lcrypto"
|
|
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var \
|
|
--enable-tempstore=yes \
|
|
--enable-fts5
|
|
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make testfixture
|
|
./testfixture test/sqlcipher.test
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
|
|
install -Dm0644 sqlcipher.1 \
|
|
"$pkgdir"/usr/share/man/man1/sqlcipher.1
|
|
}
|
|
|
|
tcl() {
|
|
pkgdesc="SQLCipher library (tcl bindings)"
|
|
|
|
amove usr/lib/tcl*
|
|
}
|
|
|
|
sha512sums="
|
|
deb592d6f27e7cc02bd641bb8f6e07b242f0dc6c7d8732e7a1e70e457eadd487add7d95c881fe9afbff516f4641a6e603473e47c63afa8396a0ddf007a5818fd sqlcipher-4.5.4.tar.gz
|
|
"
|