summaryrefslogtreecommitdiff
path: root/pcr/libgcrypt15/PKGBUILD
blob: e1a66c755921ed786220414f1ee5dd38f4f9c465 (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
# Contributor (Arch): "UnCO" Lin <trash__box <_at_> 163.com>
# Contributor (Arch): Andreas Radke <andyrtr <_at_> archlinux.org>
# Maintainer        : Omar Vega Ramos <ovruni@gnu.org.pe>

pkgname=libgcrypt15
_pkgname=libgcrypt
pkgver=1.5.4
_apiver=11.8.3
pkgrel=4
pkgdesc="General purpose cryptographic library based on the code from GnuPG"
arch=(any)
url="http://www.gnupg.org"
license=('LGPL')
depends=()
source=(
  ftp://ftp.gnupg.org/gcrypt/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
  # HTTP MIRRORS
  # http://gd.tuwien.ac.at/privacy/gnupg/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
  # http://artfiles.org/gnupg.org/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
  # http://ftp.heanet.ie/mirrors/ftp.gnupg.org/gcrypt/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
  # http://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
  # http://www.ring.gr.jp/pub/net/gnupg/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
  #
  # Currently, this mirror returns 403
  # http://mirrors.dotsrc.org/gcrypt/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2
  debian_security_patches.patch
)
sha1sums=('bdf4b04a0d2aabc04ab3564fbe38fd094135aa7a'
          'eb1b1c3a8afd6705573455b9259ac6ece961d1b3')

prepare() {
  cd ${_pkgname}-${pkgver}
  patch -Np1 -i "$srcdir"/debian_security_patches.patch
}

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

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

package() {
  cd ${_pkgname}-${pkgver}
  install -Dm755 src/.libs/libgcrypt.so.${_apiver} "$pkgdir/usr/lib/libgcrypt.so.${_apiver}"
  cd "$pkgdir/usr/lib"
  ln -s libgcrypt.so.${_apiver} libgcrypt.so.11
}