blob: b39fcc4be2b3028df551ab5222e72ab0e436a979 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Maintainer: Simon Reiser <me@sfxr.de>
# Contributor: Alexandru Ianu <alexandru.ianu@gmail.com>
# Contributor: Florian Pritz <bluewind@xinu.at>
# Contributor: Christoph Vigano <mail@cvigano.de>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
# Contributor: bender02 at gmx dot com
# Forked from https://aur.archlinux.org/nettle4.git
_pkgbasename=nettle
pkgname=${_pkgbasename}6
pkgver=3.4.1
pkgrel=2
pkgdesc="A low-level cryptographic library (legacy version)"
arch=('x86_64' 'i686')
url="http://www.lysator.liu.se/~nisse/nettle/"
license=('GPL2')
depends=('gmp' $_pkgbasename)
makedepends=(gcc)
source=(http://ftp.gnu.org/gnu/nettle/$_pkgbasename-$pkgver.tar.gz{,.sig})
sha256sums=('f941cf1535cd5d1819be5ccae5babef01f6db611f9b5a777bae9c7604b8a92ad'
'SKIP')
validpgpkeys=(343C2FF0FBEE5EC2EDBEF399F3599FF828C67298)
build() {
cd "$srcdir/$_pkgbasename-$pkgver"
export CC="gcc"
export CXX="g++"
export PKG_CONFIG_PATH="/usr/lib/pkgconfig"
./configure --prefix=/usr --libdir=/usr/lib \
--enable-shared --with-include-path=/usr/lib/gmp
make
}
check() {
cd "$srcdir/$_pkgbasename-$pkgver"
make -k check
}
package() {
cd "$srcdir/$_pkgbasename-$pkgver"
make DESTDIR="$pkgdir/" install
find $pkgdir
# 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
install -m 0755 -d "${pkgdir}"/usr/lib/nettle6
mv "${pkgdir}"/usr/{include,lib/nettle6}
rm -rf "${pkgdir}"/usr/{share,bin,lib/{*.so,pkgconfig}}
}
|