diff options
author | wener <wenermail@gmail.com> | 2020-08-06 10:40:52 +0000 |
---|---|---|
committer | Rasmus Thomsen <oss@cogitri.dev> | 2020-08-10 09:22:43 +0000 |
commit | a62cc6737daff76a15fe61c3c35546a88afac1bc (patch) | |
tree | 98ce0f696d7482903084e41ca10a29066337833e | |
parent | e1c93a47eda1d4815507fd0d2ed743daf49326d5 (diff) | |
download | aports-a62cc6737daff76a15fe61c3c35546a88afac1bc.tar.gz aports-a62cc6737daff76a15fe61c3c35546a88afac1bc.tar.bz2 aports-a62cc6737daff76a15fe61c3c35546a88afac1bc.tar.xz |
testing/sqlcipher: new aport
-rw-r--r-- | testing/sqlcipher/APKBUILD | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/testing/sqlcipher/APKBUILD b/testing/sqlcipher/APKBUILD new file mode 100644 index 0000000000..354345afa0 --- /dev/null +++ b/testing/sqlcipher/APKBUILD @@ -0,0 +1,51 @@ +# Contributor: wener <wenermail@gmail.com> +# Maintainer: wener <wenermail@gmail.com> +pkgname=sqlcipher +pkgver=4.4.0 +pkgrel=0 +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 tcl-dev readline-dev zlib-dev" +subpackages="$pkgname-dev $pkgname-doc $pkgname-libs" +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() { + export CFLAGS="$CFLAGS -DSQLITE_HAS_CODEC" + 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 +} + +libs() { + pkgdesc="SQLCipher library" + mkdir -p "$subpkgdir"/usr + mv "$pkgdir"/usr/lib "$subpkgdir"/usr/ +} + +sha512sums="e6e7b09cc079d75ac0b9e15a256bfe479ce97cfdece3244ca53e2e04b7f1dc1afdc1ee76d07f2629e614c7532cc80eeef6b85ba5952d31a2eaed8d6e84414628 sqlcipher-4.4.0.tar.gz" |