mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-09 00:17:31 +00:00
added extra/nettle
This commit is contained in:
parent
8ead9772e1
commit
e01bdb1c23
2 changed files with 58 additions and 0 deletions
38
extra/nettle/PKGBUILD
Normal file
38
extra/nettle/PKGBUILD
Normal file
|
@ -0,0 +1,38 @@
|
|||
# $Id: PKGBUILD 183668 2013-04-26 12:45:09Z andyrtr $
|
||||
# Maintainer: Andreas Radke <andyrtr@archlinux.org>
|
||||
# Contributor: bender02 at gmx dot com
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - disable neon, assembler
|
||||
|
||||
pkgname=nettle
|
||||
pkgver=2.7
|
||||
pkgrel=1.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)
|
||||
md5sums=('2caa1bd667c35db71becb93c5d89737f')
|
||||
|
||||
build() {
|
||||
cd "$srcdir/$pkgname-$pkgver"
|
||||
./configure --prefix=/usr --libdir=/usr/lib \
|
||||
--enable-shared --disable-arm-neon --disable-assembler
|
||||
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
|
||||
}
|
20
extra/nettle/nettle.install
Normal file
20
extra/nettle/nettle.install
Normal file
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue