From 9b80d9f6170f34e51b521d32aa423da33d22d158 Mon Sep 17 00:00:00 2001 From: Eivind Uggedal Date: Sun, 19 Oct 2014 15:22:24 +0000 Subject: [PATCH] New package: gnupg-agent-2.0.26. --- srcpkgs/gnupg-agent/patches/pth-prefix.patch | 27 ++++++++++++++++++++ srcpkgs/gnupg-agent/template | 25 ++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 srcpkgs/gnupg-agent/patches/pth-prefix.patch create mode 100644 srcpkgs/gnupg-agent/template diff --git a/srcpkgs/gnupg-agent/patches/pth-prefix.patch b/srcpkgs/gnupg-agent/patches/pth-prefix.patch new file mode 100644 index 00000000000..2245ba02f85 --- /dev/null +++ b/srcpkgs/gnupg-agent/patches/pth-prefix.patch @@ -0,0 +1,27 @@ +--- m4/gnupg-pth.m4.orig ++++ m4/gnupg-pth.m4 +@@ -51,9 +51,9 @@ AC_DEFUN([GNUPG_PTH_VERSION_CHECK], + _gnupg_pth_save_cflags=$CFLAGS + _gnupg_pth_save_ldflags=$LDFLAGS + _gnupg_pth_save_libs=$LIBS +- CFLAGS="$CFLAGS `$PTH_CONFIG --cflags`" +- LDFLAGS="$LDFLAGS `$PTH_CONFIG --ldflags`" +- LIBS="$LIBS `$PTH_CONFIG --libs --all`" ++ CFLAGS= ++ LDFLAGS= ++ LIBS=-lpth + AC_LINK_IFELSE([AC_LANG_PROGRAM([#include + ], + [[ pth_init ();]])], +@@ -92,9 +92,8 @@ AC_DEFUN([GNUPG_PATH_PTH], + if test "$PTH_CONFIG" != "no"; then + GNUPG_PTH_VERSION_CHECK($tmp) + if test $have_pth = yes; then +- PTH_CFLAGS=`$PTH_CONFIG --cflags` +- PTH_LIBS=`$PTH_CONFIG --ldflags` +- PTH_LIBS="$PTH_LIBS `$PTH_CONFIG --libs --all`" ++ PTH_CFLAGS= ++ PTH_LIBS=-lpth + AC_DEFINE(HAVE_PTH, 1, + [Defined if the GNU Pth is available]) + fi diff --git a/srcpkgs/gnupg-agent/template b/srcpkgs/gnupg-agent/template new file mode 100644 index 00000000000..00274a565de --- /dev/null +++ b/srcpkgs/gnupg-agent/template @@ -0,0 +1,25 @@ +# Template file for 'gnupg-agent' +pkgname=gnupg-agent +version=2.0.26 +revision=1 +wrksrc="gnupg-${version}" +build_style=gnu-configure +configure_args="--enable-agent-only --disable-rpath --disable-doc + --with-libgpg-error-prefix=$XBPS_CROSS_BASE/usr + --with-libgcrypt-prefix=$XBPS_CROSS_BASE/usr + --with-libassuan-prefix=$XBPS_CROSS_BASE/usr + --with-ksba-prefix=$XBPS_CROSS_BASE/usr + --with-pth-prefix=$XBPS_CROSS_BASE/usr" +hostmakedepends="automake" +makedepends="libassuan-devel libgcrypt-devel libksba-devel pth-devel" +depends="" +short_desc="The GNU Privacy Guard password agent" +maintainer="Eivind Uggedal " +license="GPL-3" +homepage="http://www.gnupg.org/" +distfiles="ftp://ftp.gnupg.org/gcrypt/gnupg/gnupg-${version}.tar.bz2" +checksum=7758e30dc382ae7a7167ed41b7f936aa50af5ea2d6fccdef663b5b750b65b8e0 + +pre_configure() { + ./autogen.sh +}