summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 630e9bb7fc596fdba83a8361e2a13726184e1244 (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
# Maintainer: Patrick Northon <northon_patrick3@yahoo.ca>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Llewelyn Trahaearn <woefulderelict@gmail.com>
# Contributor: TheWaffleGuy <gvxq@hotmail.com>
# Contributor: Andreas Radke <andyrtr@archlinux.org>

pkgname=libgcrypt15
pkgver=1.5.6
pkgrel=7
pkgdesc='General purpose cryptographic library based on the code from GnuPG'
arch=(x86_64)
url=http://www.gnupg.org
license=(LGPL)
depends=(
  glibc
  libgpg-error
  gpgme
)
makedepends=(git)
replaces=(libgcrypt11)
_tag=6e481d6bf0a69f8c9bd2866eb491e1e4e9b0717f
source=(git+https://github.com/gpg/libgcrypt.git#tag=${_tag})
b2sums=(SKIP)

prepare() {
  cd libgcrypt
  # Remove unreproducible build timestamp
  git cherry-pick -n a785cc3db0c4e8eb8ebbf784b833a40d2c42ec3e
  # disable doc
  sed '/doc\/Makefile/d' -i configure.ac
  sed 's/src doc tests/src tests/g' -i Makefile.am
  sed -i 's/AC_PATH_TOOL(GPG_ERROR_CONFIG, gpg-error-config, no)/AC_PATH_TOOL(GPG_ERROR_CONFIG, gpgrt-config, no)/' 'm4/gpg-error.m4'
  autoreconf -fiv
}

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

package() {
  make DESTDIR="${pkgdir}" install -C libgcrypt
  rm -rf "${pkgdir}"/usr/{bin,include,lib/libgcrypt.so,share}
}

# vim: ts=2 sw=2 et: