2023-01-11 13:23:51 +00:00
|
|
|
# Contributor: wener <wenermail@gmail.com>
|
|
|
|
# Maintainer: wener <wenermail@gmail.com>
|
|
|
|
pkgname=sqlcipher
|
2023-05-05 05:22:36 +00:00
|
|
|
pkgver=4.5.4
|
2023-01-11 13:23:51 +00:00
|
|
|
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"
|
2023-05-05 05:22:36 +00:00
|
|
|
license="BSD-3-Clause"
|
2023-01-11 13:23:51 +00:00
|
|
|
makedepends="openssl-dev>3 tcl-dev readline-dev zlib-dev"
|
2023-05-05 05:22:36 +00:00
|
|
|
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-tcl"
|
2023-01-11 13:23:51 +00:00
|
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/sqlcipher/sqlcipher/archive/v$pkgver.tar.gz"
|
|
|
|
|
|
|
|
build() {
|
2023-05-05 05:22:36 +00:00
|
|
|
export CFLAGS="$CFLAGS \
|
|
|
|
-DSQLITE_HAS_CODEC \
|
|
|
|
-DSQLCIPHER_TEST \
|
|
|
|
-DSQLITE_ENABLE_COLUMN_METADATA \
|
|
|
|
-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT \
|
|
|
|
"
|
2023-01-11 13:23:51 +00:00
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2023-05-05 05:22:36 +00:00
|
|
|
tcl() {
|
|
|
|
pkgdesc="SQLCipher library (tcl bindings)"
|
|
|
|
|
|
|
|
amove usr/lib/tcl*
|
2023-01-11 13:23:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
sha512sums="
|
2023-05-05 05:22:36 +00:00
|
|
|
deb592d6f27e7cc02bd641bb8f6e07b242f0dc6c7d8732e7a1e70e457eadd487add7d95c881fe9afbff516f4641a6e603473e47c63afa8396a0ddf007a5818fd sqlcipher-4.5.4.tar.gz
|
2023-01-11 13:23:51 +00:00
|
|
|
"
|