mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-15 05:37:01 +02:00
gpgme: package python binding
This commit is contained in:
parent
a326e966ad
commit
3eee4af5cf
2 changed files with 32 additions and 3 deletions
1
srcpkgs/gpgme-python3
Symbolic link
1
srcpkgs/gpgme-python3
Symbolic link
|
@ -0,0 +1 @@
|
|||
gpgme
|
|
@ -1,13 +1,16 @@
|
|||
# Template file for 'gpgme'
|
||||
pkgname=gpgme
|
||||
version=1.23.1
|
||||
revision=1
|
||||
revision=2
|
||||
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"
|
||||
makedepends="libassuan-devel qt5-tools-devel"
|
||||
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"
|
||||
checkdepends="which gnupg"
|
||||
short_desc="GnuPG Made Easy"
|
||||
maintainer="Orphaned <orphan@voidlinux.org>"
|
||||
license="GPL-2.0-or-later, LGPL-2.1-or-later"
|
||||
|
@ -25,6 +28,16 @@ elif [ "$XBPS_TARGET_WORDSIZE" = "32" ]; then
|
|||
CXXFLAGS+=" ${CFLAGS}"
|
||||
fi
|
||||
|
||||
post_build() {
|
||||
cd lang/python
|
||||
top_builddir=../.. python -m build --wheel --no-isolation
|
||||
}
|
||||
|
||||
post_install() {
|
||||
cd lang/python
|
||||
python -m installer --destdir="${DESTDIR}" dist/*.whl
|
||||
}
|
||||
|
||||
libgpgme_package() {
|
||||
# posix-util.c call gpgconf to get GnuPG binaries
|
||||
depends="gnupg>=2"
|
||||
|
@ -81,3 +94,18 @@ gpgmeqt-devel_package() {
|
|||
vmove usr/lib/cmake/QGpgme
|
||||
}
|
||||
}
|
||||
|
||||
gpgme-python3_package() {
|
||||
short_desc+=" - Python binding"
|
||||
depends="gpgme"
|
||||
pkg_install() {
|
||||
vmove $py3_sitelib
|
||||
rm -r ${PKGDESTDIR}/$py3_sitelib/gpg*.egg
|
||||
}
|
||||
}
|
||||
|
||||
python3-gpg_package() {
|
||||
short_desc+=" - Python binding (transitional dummy package)"
|
||||
build_style=meta
|
||||
depends="gpgme-python3>=${version}_${revision}"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue