contrib/gpgme/Pkgfile

35 lines
810 B
Plaintext
Raw Normal View History

# Description: A C, CXX, and lisp API for GnuPG.
2007-12-12 11:14:57 +01:00
# URL: http://www.gnupg.org/gpgme.html
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
2007-12-12 11:14:57 +01:00
# Packager: Brett Goulder, predatorfreak at dcaf-security dot org
# Depends on: gnupg
2007-02-27 11:17:58 +01:00
name=gpgme
2016-12-11 22:07:09 +01:00
version=1.8.0
release=3
2016-12-15 02:57:52 +01:00
source=(https://www.gnupg.org/ftp/gcrypt/$name/$name-$version.tar.bz2
gpgme-1.1.8-et_EE.patch
gpgme-1.8.0-cmake.patch)
2007-02-27 11:17:58 +01:00
build() {
2008-11-18 08:45:30 +01:00
cd $name-$version
2007-02-27 11:17:58 +01:00
2016-12-15 02:57:52 +01:00
patch -p1 -i $SRC/gpgme-1.1.8-et_EE.patch
patch -p1 -i $SRC/gpgme-1.8.0-cmake.patch
2007-02-27 11:17:58 +01:00
./configure \
--prefix=/usr \
--enable-languages='cl cpp'
2007-02-27 11:17:58 +01:00
make
make DESTDIR=$PKG install
2016-12-15 02:57:52 +01:00
sed -i -e 's:^avail_lang=.*:avail_lang="$(cat /usr/etc/gpgme/* | xargs)":' \
$PKG/usr/bin/gpgme-config
install -d $PKG/usr/etc/gpgme
echo 'c cl cpp' > $PKG/usr/etc/gpgme/base
2008-03-07 17:50:01 +01:00
rm -r $PKG/usr/share/info
2007-02-27 11:17:58 +01:00
}