[arch-commits] Commit in gpgme/trunk (PKGBUILD)

Antonio Rojas arojas at archlinux.org
Thu Oct 27 16:07:57 UTC 2016


    Date: Thursday, October 27, 2016 @ 16:07:56
  Author: arojas
Revision: 279331

Package Qt bindings

Modified:
  gpgme/trunk/PKGBUILD

----------+
 PKGBUILD |   35 +++++++++++++++++++++++++----------
 1 file changed, 25 insertions(+), 10 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2016-10-27 15:54:08 UTC (rev 279330)
+++ PKGBUILD	2016-10-27 16:07:56 UTC (rev 279331)
@@ -3,22 +3,22 @@
 # Contributor: Roman Kyrylych <roman at archlinux.org>
 # Contributor: Sarah Hay <sarah at archlinux.org>
 
-pkgname=gpgme
+pkgbase=gpgme
+pkgname=(gpgme qgpgme)
 pkgver=1.7.1
-pkgrel=1
+pkgrel=2
 pkgdesc="A C wrapper library for GnuPG"
 arch=('i686' 'x86_64')
 url="http://www.gnupg.org/related_software/gpgme/"
 license=('LGPL')
-depends=('libgpg-error' 'gnupg>=2')
-options=('!emptydirs')
-source=(https://www.gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2{,.sig})
+makedepends=('libgpg-error' 'gnupg' 'qt5-base')
+source=(https://www.gnupg.org/ftp/gcrypt/${pkgbase}/${pkgbase}-${pkgver}.tar.bz2{,.sig})
 md5sums=('9ab4a18094ca0cf9a0687e0b7d10b63d'
          'SKIP')
 validpgpkeys=('D8692123C4065DEA5E0F3AB5249B39D24F25E3B6') # Werner Koch
 
 build() {
-  cd ${srcdir}/${pkgname}-${pkgver}
+  cd ${pkgbase}-${pkgver}
   ./configure --prefix=/usr --disable-fd-passing --disable-static \
               --disable-gpgsm-test
   make
@@ -25,11 +25,26 @@
 }
 
 check() {
-  cd ${srcdir}/${pkgname}-${pkgver}
+  cd ${pkgbase}-${pkgver}
   make check
 }
 
-package() {
-  cd ${srcdir}/${pkgname}-${pkgver}
-  make DESTDIR=${pkgdir} install
+package_gpgme() {
+  depends=('libgpg-error' 'gnupg>=2')
+  options=('!emptydirs')
+
+  cd ${pkgbase}-${pkgver}
+  make DESTDIR="${pkgdir}" install
+
+  # split qgpgme
+  rm -r "${pkgdir}"/usr/include/{qgpgme*,QGpgME}
+  rm -r "${pkgdir}"/usr/lib/{cmake/Gpgmepp/QGpgme*,libqgpgme.*}
 }
+
+package_qgpgme() {
+  pkgdesc="Qt bindings for GPGme"
+  depends=('gpgme' 'qt5-base')
+
+  cd ${pkgbase}-${pkgver}/lang/qt
+  make DESTDIR="${pkgdir}" install
+}



More information about the arch-commits mailing list