[arch-commits] Commit in (5 files)

andyrtr at archlinux.org andyrtr at archlinux.org
Fri Jul 8 16:37:19 UTC 2011


    Date: Friday, July 8, 2011 @ 12:37:18
  Author: andyrtr
Revision: 130896

add pkg to the repos, needed by gnutls(new default backend), based on the the AUR one

Added:
  nettle/
  nettle/repos/
  nettle/trunk/
  nettle/trunk/PKGBUILD
  nettle/trunk/nettle.install

----------------+
 PKGBUILD       |   33 +++++++++++++++++++++++++++++++++
 nettle.install |   22 ++++++++++++++++++++++
 2 files changed, 55 insertions(+)

Added: nettle/trunk/PKGBUILD
===================================================================
--- nettle/trunk/PKGBUILD	                        (rev 0)
+++ nettle/trunk/PKGBUILD	2011-07-08 16:37:18 UTC (rev 130896)
@@ -0,0 +1,33 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: bender02 at gmx dot com
+
+pkgname=nettle
+pkgver=2.1
+pkgrel=1
+pkgdesc="A low-level cryptographic library"
+arch=('i686' 'x86_64')
+url="http://www.lysator.liu.se/~nisse/nettle/"
+license=('GPL2')
+install=$pkgname.install
+source=(ftp://ftp.lysator.liu.se/pub/security/lsh/$pkgname-$pkgver.tar.gz)
+md5sums=('2bfaf16234a5d8deb96cd23f53a682bb')
+
+build() {
+  cd "$srcdir/$pkgname-$pkgver"
+  ./configure --prefix=/usr --enable-shared
+  make
+}
+
+check() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make -k check
+}
+
+package() {
+  cd "$srcdir/$pkgname-$pkgver"
+  make DESTDIR="$pkgdir/" install
+  rm $pkgdir/usr/share/info/dir
+}
+
+# vim:set ts=2 sw=2 et:


Property changes on: nettle/trunk/PKGBUILD
___________________________________________________________________
Added: svn:keywords
   + Id

Added: nettle/trunk/nettle.install
===================================================================
--- nettle/trunk/nettle.install	                        (rev 0)
+++ nettle/trunk/nettle.install	2011-07-08 16:37:18 UTC (rev 130896)
@@ -0,0 +1,22 @@
+infodir=/usr/share/info
+filelist=(nettle.info)
+
+post_install() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    ! [ -f $infodir/$file ] || install-info $infodir/$file $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
+    ! [ -f $infodir/$file ] || install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list