[arch-commits] Commit in nettle/trunk (PKGBUILD nettle.install)

andyrtr at archlinux.org andyrtr at archlinux.org
Fri Jul 8 12:53:06 EDT 2011


    Date: Friday, July 8, 2011 @ 12:53:06
  Author: andyrtr
Revision: 130897

upgpkg: nettle 2.1-1
initial pkg based on the AUR one needed now as default backend for gnutls

Modified:
  nettle/trunk/PKGBUILD
  nettle/trunk/nettle.install

----------------+
 PKGBUILD       |   11 +++++++----
 nettle.install |    6 ++----
 2 files changed, 9 insertions(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-07-08 16:37:18 UTC (rev 130896)
+++ PKGBUILD	2011-07-08 16:53:06 UTC (rev 130897)
@@ -10,12 +10,15 @@
 url="http://www.lysator.liu.se/~nisse/nettle/"
 license=('GPL2')
 install=$pkgname.install
+depends=('gmp')
 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
+  ./configure --prefix=/usr --libdir=/usr/lib \
+	--enable-shared \
+	--disable-static # <-- seems not working now
   make
 }
 
@@ -27,7 +30,7 @@
 package() {
   cd "$srcdir/$pkgname-$pkgver"
   make DESTDIR="$pkgdir/" install
-  rm $pkgdir/usr/share/info/dir
+  
+  # remove static libs
+  rm -f ${pkgdir}/usr/lib/{libhogweed,libnettle}.a
 }
-
-# vim:set ts=2 sw=2 et:

Modified: nettle.install
===================================================================
--- nettle.install	2011-07-08 16:37:18 UTC (rev 130896)
+++ nettle.install	2011-07-08 16:53:06 UTC (rev 130897)
@@ -4,7 +4,7 @@
 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
+    install-info $infodir/$file.gz $infodir/dir 2> /dev/null
   done
 }
 
@@ -15,8 +15,6 @@
 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
+    install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
   done
 }
-
-# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list