From 8611d3462e682f1796a766f24ef4566bb64ddde2 Mon Sep 17 00:00:00 2001
From: James Meyer <james.meyer@operamail.com>
Date: Tue, 7 Aug 2012 09:42:05 -0500
Subject: libassuan 2.0.3 new

---
 abs/core/libassuan/PKGBUILD          | 31 +++++++++++++++++++++++++++++++
 abs/core/libassuan/libassuan.install | 20 ++++++++++++++++++++
 2 files changed, 51 insertions(+)
 create mode 100644 abs/core/libassuan/PKGBUILD
 create mode 100644 abs/core/libassuan/libassuan.install

diff --git a/abs/core/libassuan/PKGBUILD b/abs/core/libassuan/PKGBUILD
new file mode 100644
index 0000000..12e79ce
--- /dev/null
+++ b/abs/core/libassuan/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 146745 2012-01-16 22:52:52Z dreisner $
+# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
+
+pkgname=libassuan
+pkgver=2.0.3
+pkgrel=1
+pkgdesc="A IPC library used by some GnuPG related software"
+arch=('i686' 'x86_64')
+license=('GPL')
+url="http://www.gnupg.org/related_software/libassuan"
+depends=('libgpg-error')
+options=('!libtool')
+source=(ftp://ftp.gnupg.org/gcrypt/$pkgname/$pkgname-$pkgver.tar.bz2)
+install=libassuan.install
+
+build() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  ./configure --prefix=/usr
+  make
+}
+
+check() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  make check
+}
+
+package() {
+  cd ${srcdir}/${pkgname}-${pkgver}
+  make DESTDIR=${pkgdir} install
+}
+md5sums=('179d1918325fdb928c7bd90b8a514fc7')
diff --git a/abs/core/libassuan/libassuan.install b/abs/core/libassuan/libassuan.install
new file mode 100644
index 0000000..07e2672
--- /dev/null
+++ b/abs/core/libassuan/libassuan.install
@@ -0,0 +1,20 @@
+infodir=usr/share/info
+filelist=(assuan.info)
+
+post_install() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file.gz $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
+  done
+}
-- 
cgit v0.12

