gpgme: update to 1.23.2.

This commit is contained in:
Luciogi 2024-04-27 21:01:32 +05:00 committed by Đoàn Trần Công Danh
parent a410e60784
commit 80ec1bee75
5 changed files with 66 additions and 14 deletions

View File

@ -733,6 +733,7 @@ libassuan.so.0 libassuan-2.0.1_1
libgpgme.so.11 libgpgme-1.12.0_2
libgpgmepp.so.6 gpgmepp-1.7.0_3
libqgpgme.so.15 gpgmeqt-1.18.0_1
libqgpgmeqt6.so.15 gpgme-qt6-1.23.2_1
libgarcon-1.so.0 garcon-0.1.12_1
libgarcon-gtk3-1.so.0 garcon-0.6.1_1
libxfce4ui-2.so.0 libxfce4ui-4.18.0_1

1
srcpkgs/gpgme-qt6 Symbolic link
View File

@ -0,0 +1 @@
gpgme

1
srcpkgs/gpgme-qt6-devel Symbolic link
View File

@ -0,0 +1 @@
gpgme

View File

@ -1,15 +1,15 @@
# Template file for 'gpgme'
pkgname=gpgme
version=1.23.1
revision=2
version=1.23.2
revision=1
build_style=gnu-configure
build_helper="python3"
configure_args="--enable-fd-passing
--with-libgpg-error-prefix=$XBPS_CROSS_BASE/usr
--with-libassuan-prefix=$XBPS_CROSS_BASE/usr"
hostmakedepends="gnupg pkg-config qt5-host-tools qt5-qmake python3-setuptools
python3-installer python3-build python3-wheel swig"
makedepends="libassuan-devel qt5-tools-devel python3-devel"
python3-installer python3-build python3-wheel swig qt6-base"
makedepends="libassuan-devel qt5-devel python3-devel qt6-base-devel"
checkdepends="which gnupg"
short_desc="GnuPG Made Easy"
maintainer="Orphaned <orphan@voidlinux.org>"
@ -17,7 +17,7 @@ license="GPL-2.0-or-later, LGPL-2.1-or-later"
homepage="https://www.gnupg.org/software/gpgme/index.html"
changelog="https://git.gnupg.org/cgi-bin/gitweb.cgi?p=gpgme.git;a=blob_plain;f=NEWS;hb=HEAD"
distfiles="https://www.gnupg.org/ftp/gcrypt/gpgme/gpgme-${version}.tar.bz2"
checksum=a0c316f7ab7d3bfb01a8753c3370dc906e5b61436021f3b54ff1483b513769bd
checksum=9499e8b1f33cccb6815527a1bc16049d35a6198a6c5fae0185f2bd561bce5224
CXXFLAGS="-D_GLIBCXX_USE_C99_STDIO=1"
@ -28,13 +28,34 @@ elif [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
CXXFLAGS+=" ${CFLAGS}"
fi
post_build() {
cd lang/python
top_builddir=../.. python -m build --wheel --no-isolation
do_configure() {
mkdir -p build
mkdir -p build-qt6
cd build
../configure ${configure_args}
cd ../build-qt6
../configure ${configure_args} --enable-languages=qt6,cpp \
MOC=/usr/lib/qt6/libexec/moc
}
post_install() {
cd lang/python
do_build() {
local f
make -C build ${makejobs}
make -C build-qt6 ${makejobs}
cd build/lang/python
top_builddir=../.. srcdir=../../../lang/python \
python -m build --wheel --no-isolation
}
do_check() {
make -C build ${makejobs} check
make -C build-qt6 ${makejobs} check
}
do_install() {
make -C build install DESTDIR=${DESTDIR}
make -C build-qt6 install DESTDIR=${DESTDIR}
cd build/lang/python
python -m installer --destdir="${DESTDIR}" dist/*.whl
}
@ -78,23 +99,50 @@ gpgmepp-devel_package() {
}
gpgmeqt_package() {
short_desc+=" - Qt binding"
short_desc+=" - Qt5 binding"
pkg_install() {
vmove "usr/lib/libqgpgme.so.*"
}
}
gpgmeqt-devel_package() {
depends="gpgme-devel>=${version}_${revision} gpgmeqt>=${version}_${revision}"
short_desc+=" - Qt binding development files"
gpgmeqt-headers_package() {
short_desc+=" - Qt binding headers"
pkg_install() {
vmove usr/include/QGpgME
vmove usr/include/qgpgme
}
}
gpgmeqt-devel_package() {
depends="gpgme-devel>=${version}_${revision}
gpgmeqt-headers>=${version}_${revision}
gpgmeqt>=${version}_${revision}"
short_desc+=" - Qt5 binding development files"
pkg_install() {
vmove usr/lib/libqgpgme.so
vmove usr/lib/cmake/QGpgme
}
}
gpgme-qt6_package() {
short_desc+=" - Qt 6 binding"
pkg_install() {
vmove "usr/lib/libqgpgmeqt6.so.*"
}
}
gpgme-qt6-devel_package() {
depends="gpgme-devel>=${version}_${revision}
gpgmeqt-headers>=${version}_${revision}
gpgme-qt6>=${version}_${revision}"
short_desc+=" - Qt 6 binding - development files"
pkg_install() {
vmove usr/lib/libqgpgmeqt6.la
vmove usr/lib/libqgpgmeqt6.so
vmove usr/lib/cmake/QGpgmeQt6
}
}
gpgme-python3_package() {
short_desc+=" - Python binding"
depends="gpgme"

1
srcpkgs/gpgmeqt-headers Symbolic link
View File

@ -0,0 +1 @@
gpgme