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

_pkgname=libgcrypt
pkgname=libgcrypt-static
pkgver=1.7.0
pkgrel=1
pkgdesc="General purpose cryptographic library based on the code from GnuPG (static libraries only)"
arch=(i686 x86_64 armv7h)
url="http://www.gnupg.org"
license=('LGPL')
depends=('libgpg-error-static' 'libgcrypt')
options=('!emptydirs' 'staticlibs')
# https://www.gnupg.org/download/integrity_check.html
source=(ftp://ftp.gnupg.org/gcrypt/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2{,.sig})
sha1sums=('f840b737faafded451a084ae143285ad68bbfb01'
          'SKIP')
validpgpkeys=('031EC2536E580D8EA286A9F22071B08A33BD3F06' # "NIIBE Yutaka (GnuPG Release Key) <gniibe@fsij.org>"
              'D8692123C4065DEA5E0F3AB5249B39D24F25E3B6') # Werner Koch

#prepare() {
#  cd ${_pkgname}-${pkgver}
#}

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

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

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

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