backports/sqlcipher: upgrade to 4.5.4

This commit is contained in:
Antoine Martin 2023-05-05 01:22:36 -04:00
parent 4fad6d38b2
commit d57017d3f6
Signed by: forge
GPG key ID: D62A472A4AA7D541

View file

@ -1,20 +1,23 @@
# Contributor: wener <wenermail@gmail.com> # Contributor: wener <wenermail@gmail.com>
# Maintainer: wener <wenermail@gmail.com> # Maintainer: wener <wenermail@gmail.com>
pkgname=sqlcipher pkgname=sqlcipher
pkgver=4.5.2 pkgver=4.5.4
pkgrel=1 pkgrel=1
pkgdesc="SQLCipher is an SQLite extension that provides 256 bit AES encryption of database files." pkgdesc="SQLCipher is an SQLite extension that provides 256 bit AES encryption of database files."
url="https://www.zetetic.net/sqlcipher/" url="https://www.zetetic.net/sqlcipher/"
arch="all" arch="all"
license="BSD-3-clause" license="BSD-3-Clause"
makedepends="openssl-dev>3 tcl-dev readline-dev zlib-dev" makedepends="openssl-dev>3 tcl-dev readline-dev zlib-dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-tcl"
source="$pkgname-$pkgver.tar.gz::https://github.com/sqlcipher/sqlcipher/archive/v$pkgver.tar.gz" source="$pkgname-$pkgver.tar.gz::https://github.com/sqlcipher/sqlcipher/archive/v$pkgver.tar.gz"
# block by https://github.com/sqlcipher/sqlcipher/issues/368#issuecomment-669984195
# options="!check"
build() { build() {
export CFLAGS="$CFLAGS -DSQLITE_HAS_CODEC -DSQLCIPHER_TEST -DSQLITE_ENABLE_COLUMN_METADATA" export CFLAGS="$CFLAGS \
-DSQLITE_HAS_CODEC \
-DSQLCIPHER_TEST \
-DSQLITE_ENABLE_COLUMN_METADATA \
-DSQLITE_ENABLE_UPDATE_DELETE_LIMIT \
"
export LDFLAGS="$LDFLAGS -lcrypto" export LDFLAGS="$LDFLAGS -lcrypto"
./configure \ ./configure \
@ -42,12 +45,12 @@ package() {
"$pkgdir"/usr/share/man/man1/sqlcipher.1 "$pkgdir"/usr/share/man/man1/sqlcipher.1
} }
libs() { tcl() {
pkgdesc="SQLCipher library" pkgdesc="SQLCipher library (tcl bindings)"
mkdir -p "$subpkgdir"/usr
mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ amove usr/lib/tcl*
} }
sha512sums=" sha512sums="
1de5b219392bb976631857e32b4523258fd660fedb558d478e536b7e10c711c72c7e7c9062e45bd8a5ceaecbc1fee717935d2357f6811c3ddf76702167f4601b sqlcipher-4.5.2.tar.gz deb592d6f27e7cc02bd641bb8f6e07b242f0dc6c7d8732e7a1e70e457eadd487add7d95c881fe9afbff516f4641a6e603473e47c63afa8396a0ddf007a5818fd sqlcipher-4.5.4.tar.gz
" "