summaryrefslogtreecommitdiff
path: root/libre/nettle-static/PKGBUILD
blob: 8ab83163524f3d095493893c186c0c9dd161ab60 (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
# Maintainer: Márcio Silva <coadde@parabola.nu>
# based of nettle

_pkgname=nettle
pkgname=nettle-static
pkgver=3.2
pkgrel=1
pkgdesc="A low-level cryptographic library (static libraries only)"
arch=('i686' 'x86_64' 'armv7h')
url="http://www.lysator.liu.se/~nisse/nettle/"
license=('GPL2')
depends=('gmp-static')
checkdepends=('valgrind')
options=('staticlibs')
source=(https://ftp.gnu.org/gnu/$_pkgname/$_pkgname-$pkgver.tar.gz{,.sig})
md5sums=('afb15b4764ebf1b4e6d06c62bd4d29e4'
         'SKIP')
validpgpkeys=('343C2FF0FBEE5EC2EDBEF399F3599FF828C67298') # Niels Möller <nisse@lysator.liu.se>


build() {
  cd $_pkgname-$pkgver
  ./configure --prefix=/usr \
    --enable-static
  make
}

check() {
  cd $_pkgname-$pkgver
  make -k check
}

package() {
  cd $_pkgname-$pkgver
  make DESTDIR="$pkgdir/" install

  # remove conflicting files
  rm -vr ${pkgdir}/usr/{bin,include,lib/pkgconfig,share}
  rm -v ${pkgdir}/usr/lib/lib*.so*
}