contrib/gpgme/Pkgfile

37 lines
819 B
Plaintext
Raw Normal View History

# Description: A C wrapper and Python bindings library for GnuPG
2019-09-01 16:47:14 +02:00
# URL: https://www.gnupg.org/related_software/gpgme/
2014-11-10 13:28:07 +01:00
# Maintainer: Danny Rawlins, crux at romster dot me
# Depends on: gnupg swig python3-setuptools
2007-02-27 11:17:58 +01:00
name=gpgme
2022-08-20 19:03:11 +02:00
version=1.18.0
release=1
2022-01-03 14:37:50 +01:00
source=(https://www.gnupg.org/ftp/gcrypt/$name/$name-$version.tar.bz2
python310.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
2022-01-03 14:37:50 +01:00
patch -Np1 -i $SRC/python310.patch
export PYTHON='/usr/bin/python3'
2007-02-27 11:17:58 +01:00
./configure \
--prefix=/usr \
--disable-fd-passing \
--disable-gpgsm-test \
--enable-languages='cl cpp python'
2007-02-27 11:17:58 +01:00
make
make DESTDIR=$PKG install
2016-12-15 02:57:52 +01:00
cd lang/python
make DESTDIR=$PKG install
install -d $PKG/usr/etc/gpgme
echo 'c cl cpp' > $PKG/usr/etc/gpgme/base
echo 'python3' > $PKG/usr/etc/gpgme/python
2008-03-07 17:50:01 +01:00
rm -r $PKG/usr/share/info
rm -rf $PKG/usr/lib/python2.7
2007-02-27 11:17:58 +01:00
}