summaryrefslogtreecommitdiff
path: root/pcr/sqlcipher/PKGBUILD
blob: 325a1edca1f496bd6fac40d0e79a88c61626fcaf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Maintainer (Arch): flu
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=sqlcipher
pkgver=3.3.1
pkgrel=1
pkgdesc="SQLite extension that provides transparent 256-bit AES encryption of database files"
arch=('i686' 'x86_64')
url="https://www.zetetic.net/sqlcipher/"
license=('BSD')
makedepends=('tcl' 'openssl' 'sqlite3' 'git')
source=(https://github.com/sqlcipher/${pkgname}/archive/v${pkgver}.tar.gz)
sha512sums=('8bcbe0d46ec109788bf58ba53eaccad189338fb3caf551096ae166c71a72ba58331bc2d1198d6c7b3f62973e004be06c6189f2539e7da664b2e4b50c5637f989')

build() {
    cd "$srcdir/$pkgname-$pkgver"
    ./configure --prefix=/usr          \
                --disable-tcl          \
                --enable-tempstore=yes \
                  CFLAGS="$CFLAGS -DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto"
    make
}

package() {
    cd "$srcdir/$pkgname-$pkgver"

    make DESTDIR="$pkgdir/" install
    install -D -m 0644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}