2021-06-27 19:36:32 +10:00
|
|
|
# Description: A C wrapper and Python bindings library for GnuPG
|
2019-09-02 00:47:14 +10:00
|
|
|
# URL: https://www.gnupg.org/related_software/gpgme/
|
2023-07-07 20:09:48 +02:00
|
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
2023-08-27 00:11:53 +02:00
|
|
|
# Depends on: gnupg python3-build python3-installer python3-wheel swig
|
2023-08-21 17:47:47 +02:00
|
|
|
# Optional: qt5 qt6-base
|
2007-02-27 21:17:58 +11:00
|
|
|
|
|
|
|
name=gpgme
|
2023-08-21 17:47:47 +02:00
|
|
|
version=1.22.0
|
2023-09-07 22:19:01 +02:00
|
|
|
release=4
|
2023-08-21 17:47:47 +02:00
|
|
|
source=(https://www.gnupg.org/ftp/gcrypt/$name/$name-$version.tar.bz2
|
|
|
|
qt5.patch)
|
2007-02-27 21:17:58 +11:00
|
|
|
|
|
|
|
build() {
|
2023-07-07 20:09:48 +02:00
|
|
|
cd $name-$version
|
2007-02-27 21:17:58 +11:00
|
|
|
|
2023-08-21 17:47:47 +02:00
|
|
|
## revert c3171d0cf1a249618f0763fe141ab84d8a4be240
|
|
|
|
## https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=commitdiff;h=c3171d0cf1a249618f0763fe141ab84d8a4be240
|
|
|
|
patch -Rp1 -i $SRC/qt5.patch
|
|
|
|
prt-get isinst qt5 && PKGMK_GPGME_LANG+=' qt'
|
|
|
|
## fails to build as well
|
|
|
|
#prt-get isinst qt6-base && PKGMK_GPGME_LANG+=' qt6'
|
|
|
|
|
2023-07-07 20:09:48 +02:00
|
|
|
export PYTHON='/usr/bin/python3'
|
|
|
|
./configure \
|
|
|
|
--prefix=/usr \
|
|
|
|
--disable-fd-passing \
|
|
|
|
--disable-gpgsm-test \
|
2023-09-07 22:19:01 +02:00
|
|
|
--enable-languages="cl cpp python $PKGMK_GPGME_LANG" \
|
|
|
|
--enable-static
|
2007-02-27 21:17:58 +11:00
|
|
|
|
2023-07-07 20:09:48 +02:00
|
|
|
make
|
|
|
|
make DESTDIR=$PKG install
|
2016-12-15 12:57:52 +11:00
|
|
|
|
2023-07-07 20:09:48 +02:00
|
|
|
cd lang/python
|
2023-08-27 00:11:53 +02:00
|
|
|
top_builddir=$SRC/$name-$version /usr/bin/python3 -m build --wheel --skip-dependency-check --no-isolation
|
|
|
|
top_builddir=$SRC/$name-$version /usr/bin/python3 -m installer --compile-bytecode 2 --destdir=$PKG dist/*.whl
|
2016-12-17 23:38:08 +11:00
|
|
|
|
2023-08-27 00:11:53 +02:00
|
|
|
rm -rf $PKG/usr/share/{common-lisp,info}
|
2007-02-27 21:17:58 +11:00
|
|
|
}
|