1 # This is an example PKGBUILD file. Use this as a start to creating your own,
2 # and remove these comments. For more information, see 'man PKGBUILD'.
3 # NOTE: Please fill out the license field for your package! If it is unknown,
4 # then please put 'unknown'.
6 # Maintainer: fogobogo <fogobogo@archlinux.us>
10 pkgdesc="SQLCipher is an SQLite extension that provides transparent 256-bit AES encryption of database files."
12 url="http://sqlcipher.net/"
15 makedepends=('tcl' 'openssl' 'sqlite3')
16 # if you dont apply the patches sqlcipher acts as drop-in replacement for sqlite3
18 source=("https://github.com/sjlombardo/sqlcipher/tarball/v1.1.8/$pkgname-v$pkgver-0-gc45622d.tar.gz"
20 "sqlite3.pc.in.patch")
22 md5sums=('7acf641826c48993e394c0f367704f9c'
23 '6be4bb76dbd3bd9224bf642bc571edc9'
24 '3034075dedf9dfe43c4dabbbe5d0d9f5')
27 cd "$srcdir/sjlombardo-sqlcipher-ec5bbe6"
28 patch -p 0 < "$startdir/Makefile.in.patch" || return 1
29 patch -p 0 < "$startdir/sqlite3.pc.in.patch" || return 1
31 #./configure --prefix=/usr --disable-tcl --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="/usr/lib/libcrypto.a"
33 ./configure --prefix=/usr --disable-tcl --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto"
38 cd "$srcdir/sjlombardo-sqlcipher-ec5bbe6"
40 make DESTDIR="$pkgdir/" install
43 # vim:set ts=2 sw=2 et: