contrib/gpgme/Pkgfile

40 lines
1.2 KiB
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/
2023-07-07 20:09:48 +02:00
# Maintainer: Tim Biermann, tbier at posteo dot de
# 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 11:17:58 +01: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 11:17:58 +01:00
build() {
2023-07-07 20:09:48 +02:00
cd $name-$version
2007-02-27 11:17:58 +01: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 11:17:58 +01:00
2023-07-07 20:09:48 +02:00
make
make DESTDIR=$PKG install
2016-12-15 02:57:52 +01:00
2023-07-07 20:09:48 +02:00
cd lang/python
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
rm -rf $PKG/usr/share/{common-lisp,info}
2007-02-27 11:17:58 +01:00
}