blob: fce6afda140a42ebcd41ec52de59f824e118b2f0 (
plain)
1 # Description: A C, CXX, and lisp API for GnuPG.
2 # URL: http://www.gnupg.org/gpgme.html
3 # Maintainer: Danny Rawlins, crux at romster dot me
4 # Packager: Brett Goulder, predatorfreak at dcaf-security dot org
5 # Depends on: gnupg
6
7 name=gpgme
8 version=1.8.0
9 release=3
10 source=(https://www.gnupg.org/ftp/gcrypt/$name/$name-$version.tar.bz2
11 gpgme-1.1.8-et_EE.patch
12 gpgme-1.8.0-cmake.patch)
13
14 build() {
15 cd $name-$version
16
17 patch -p1 -i $SRC/gpgme-1.1.8-et_EE.patch
18 patch -p1 -i $SRC/gpgme-1.8.0-cmake.patch
19
20 ./configure \
21 --prefix=/usr \
22 --enable-languages='cl cpp'
23
24 make
25 make DESTDIR=$PKG install
26
27 sed -i -e 's:^avail_lang=.*:avail_lang="$(cat /usr/etc/gpgme/* | xargs)":' \
28 $PKG/usr/bin/gpgme-config
29
30 install -d $PKG/usr/etc/gpgme
31 echo 'c cl cpp' > $PKG/usr/etc/gpgme/base
32
33 rm -r $PKG/usr/share/info
34 }
|