[arch-commits] Commit in nettle/repos (8 files)
Gaetan Bisson
bisson at archlinux.org
Thu Dec 11 19:38:12 UTC 2014
Date: Thursday, December 11, 2014 @ 20:38:12
Author: bisson
Revision: 227547
db-move: moved nettle from [extra] to [core] (i686, x86_64)
Added:
nettle/repos/core-i686/
nettle/repos/core-i686/PKGBUILD
(from rev 227546, nettle/repos/extra-i686/PKGBUILD)
nettle/repos/core-i686/nettle.install
(from rev 227546, nettle/repos/extra-i686/nettle.install)
nettle/repos/core-x86_64/
nettle/repos/core-x86_64/PKGBUILD
(from rev 227546, nettle/repos/extra-x86_64/PKGBUILD)
nettle/repos/core-x86_64/nettle.install
(from rev 227546, nettle/repos/extra-x86_64/nettle.install)
Deleted:
nettle/repos/extra-i686/
nettle/repos/extra-x86_64/
----------------------------+
core-i686/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
core-i686/nettle.install | 20 ++++++++++++++++++++
core-x86_64/PKGBUILD | 37 +++++++++++++++++++++++++++++++++++++
core-x86_64/nettle.install | 20 ++++++++++++++++++++
4 files changed, 114 insertions(+)
Copied: nettle/repos/core-i686/PKGBUILD (from rev 227546, nettle/repos/extra-i686/PKGBUILD)
===================================================================
--- core-i686/PKGBUILD (rev 0)
+++ core-i686/PKGBUILD 2014-12-11 19:38:12 UTC (rev 227547)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: bender02 at gmx dot com
+
+pkgname=nettle
+pkgver=2.7.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
+depends=('gmp')
+source=(http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz{,.sig})
+md5sums=('003d5147911317931dd453520eb234a5'
+ 'SKIP')
+
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr --libdir=/usr/lib \
+ --enable-shared
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make -k check
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+
+ # remove static libs #--disable-static - build would break (since nettle 2.6) - and had no effect before
+ rm -f ${pkgdir}/usr/lib/{libhogweed,libnettle}.a
+}
Copied: nettle/repos/core-i686/nettle.install (from rev 227546, nettle/repos/extra-i686/nettle.install)
===================================================================
--- core-i686/nettle.install (rev 0)
+++ core-i686/nettle.install 2014-12-11 19:38:12 UTC (rev 227547)
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(nettle.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
+}
Copied: nettle/repos/core-x86_64/PKGBUILD (from rev 227546, nettle/repos/extra-x86_64/PKGBUILD)
===================================================================
--- core-x86_64/PKGBUILD (rev 0)
+++ core-x86_64/PKGBUILD 2014-12-11 19:38:12 UTC (rev 227547)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Andreas Radke <andyrtr at archlinux.org>
+# Contributor: bender02 at gmx dot com
+
+pkgname=nettle
+pkgver=2.7.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
+depends=('gmp')
+source=(http://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.gz{,.sig})
+md5sums=('003d5147911317931dd453520eb234a5'
+ 'SKIP')
+
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr --libdir=/usr/lib \
+ --enable-shared
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make -k check
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make DESTDIR="$pkgdir/" install
+
+ # remove static libs #--disable-static - build would break (since nettle 2.6) - and had no effect before
+ rm -f ${pkgdir}/usr/lib/{libhogweed,libnettle}.a
+}
Copied: nettle/repos/core-x86_64/nettle.install (from rev 227546, nettle/repos/extra-x86_64/nettle.install)
===================================================================
--- core-x86_64/nettle.install (rev 0)
+++ core-x86_64/nettle.install 2014-12-11 19:38:12 UTC (rev 227547)
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(nettle.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
+}
More information about the arch-commits
mailing list