core/gpgme to 1.23.2-6

This commit is contained in:
Kevin Mihelich 2024-07-21 12:00:02 +00:00
parent 0a9dba8b03
commit ab3a355b18
2 changed files with 49 additions and 7 deletions

View file

@ -1,11 +1,14 @@
pkgbase = gpgme pkgbase = gpgme
pkgdesc = A C wrapper library for GnuPG pkgdesc = A C wrapper library for GnuPG
pkgver = 1.23.2 pkgver = 1.23.2
pkgrel = 4 pkgrel = 6
url = https://www.gnupg.org/related_software/gpgme/ url = https://www.gnupg.org/related_software/gpgme/
arch = x86_64 arch = x86_64
license = LGPL license = GPL-2.0-or-later
license = LGPL-2.0-or-later
license = LGPL-2.1-or-later
makedepends = gnupg makedepends = gnupg
makedepends = libassuan
makedepends = libgpg-error makedepends = libgpg-error
makedepends = python makedepends = python
makedepends = python-build makedepends = python-build
@ -22,6 +25,14 @@ pkgbase = gpgme
sha256sums = SKIP sha256sums = SKIP
pkgname = gpgme pkgname = gpgme
license = GPL-2.0-or-later
license = LGPL-2.0-or-later
license = LGPL-2.1-or-later
license = MIT
depends = gcc-libs
depends = glib2
depends = glibc
depends = libassuan
depends = libgpg-error depends = libgpg-error
depends = gnupg>=2 depends = gnupg>=2
provides = libgpgme.so provides = libgpgme.so
@ -30,10 +41,14 @@ pkgname = gpgme
pkgname = qgpgme-qt6 pkgname = qgpgme-qt6
pkgdesc = Qt6 bindings for GPGme pkgdesc = Qt6 bindings for GPGme
depends = gcc-libs
depends = glibc
depends = gpgme depends = gpgme
depends = libgpg-error
depends = qt6-base depends = qt6-base
pkgname = python-gpgme pkgname = python-gpgme
pkgdesc = Python bindings for GPGme pkgdesc = Python bindings for GPGme
depends = glibc
depends = gpgme depends = gpgme
depends = python depends = python

View file

@ -8,13 +8,18 @@
pkgbase=gpgme pkgbase=gpgme
pkgname=(gpgme qgpgme-qt6 python-gpgme) pkgname=(gpgme qgpgme-qt6 python-gpgme)
pkgver=1.23.2 pkgver=1.23.2
pkgrel=4 pkgrel=6
pkgdesc='A C wrapper library for GnuPG' pkgdesc='A C wrapper library for GnuPG'
arch=('x86_64') arch=('x86_64')
url='https://www.gnupg.org/related_software/gpgme/' url='https://www.gnupg.org/related_software/gpgme/'
license=('LGPL') license=(
GPL-2.0-or-later
LGPL-2.0-or-later
LGPL-2.1-or-later
)
makedepends=( makedepends=(
'gnupg' 'gnupg'
'libassuan'
'libgpg-error' 'libgpg-error'
'python' 'python'
'python-build' 'python-build'
@ -46,6 +51,9 @@ build() {
--disable-fd-passing \ --disable-fd-passing \
--disable-static \ --disable-static \
--disable-gpgsm-test --disable-gpgsm-test
# prevent excessive overlinking due to libtool
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make make
( (
@ -66,10 +74,18 @@ check() {
} }
package_gpgme() { package_gpgme() {
depends=('libgpg-error' 'gnupg>=2') depends=(
'gcc-libs'
'glib2'
'glibc'
'libassuan'
'libgpg-error'
'gnupg>=2'
)
options+=('!emptydirs') options+=('!emptydirs')
provides=('libgpgme.so' provides=('libgpgme.so'
'libgpgmepp.so') 'libgpgmepp.so')
license+=(MIT)
cd ${pkgbase}-${pkgver} cd ${pkgbase}-${pkgver}
@ -78,11 +94,18 @@ package_gpgme() {
# split qgpgme # split qgpgme
rm -r "${pkgdir}"/usr/lib/{cmake/QGpgmeQt6/,libqgpgmeqt6.*} rm -r "${pkgdir}"/usr/lib/{cmake/QGpgmeQt6/,libqgpgmeqt6.*}
rm -r "${pkgdir}"/usr/lib/python* rm -r "${pkgdir}"/usr/lib/python*
install -vDm 644 LICENSES "$pkgdir/usr/share/licenses/$pkgname/MIT.txt"
} }
package_qgpgme-qt6() { package_qgpgme-qt6() {
pkgdesc="Qt6 bindings for GPGme" pkgdesc="Qt6 bindings for GPGme"
depends=('gpgme' 'qt6-base') depends=(
'gcc-libs'
'glibc'
'gpgme'
'libgpg-error'
'qt6-base'
)
cd ${pkgbase}-${pkgver}/lang/qt cd ${pkgbase}-${pkgver}/lang/qt
@ -92,7 +115,11 @@ package_qgpgme-qt6() {
package_python-gpgme() { package_python-gpgme() {
pkgdesc="Python bindings for GPGme" pkgdesc="Python bindings for GPGme"
depends=('gpgme' 'python') depends=(
'glibc'
'gpgme'
'python'
)
cd ${pkgbase}-${pkgver}/lang/python cd ${pkgbase}-${pkgver}/lang/python
python -m installer --destdir="$pkgdir" dist/*.whl python -m installer --destdir="$pkgdir" dist/*.whl