aboutsummaryrefslogtreecommitdiffstats
path: root/main/libgcrypt/APKBUILD
blob: 5c8dae7632b0f37b95aa9338c6b67e1718717185 (plain) (blame)
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
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libgcrypt
pkgver=1.9.1
pkgrel=1
pkgdesc="General purpose crypto library based on the code used in GnuPG"
url="https://www.gnupg.org/"
arch="all"
license="LGPL-2.1-or-later"
makedepends="libgpg-error-dev texinfo"
subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
source="https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-$pkgver.tar.bz2
	fix_building_with_disable-asm_on_x86.patch
	"

# secfixes:
#   1.8.5-r0:
#     - CVE-2019-13627
#   1.8.4-r2:
#     - CVE-2019-12904
#   1.8.3-r0:
#     - CVE-2018-0495

build() {
	local _arch_configure
	case "$CARCH" in
	x86)
		_arch_configure="--disable-asm";;
	esac

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--localstatedir=/var \
		--enable-static \
		$_arch_configure
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	rm -f $pkgdir/usr/share/info/dir
}

sha512sums="e8a028724cf5476fff0ca82c5c279a64b3bc5d1fd1472b784df4084b185266825baffc49e27b90db7453c8faef68cd0b8264f379abacee629bbdf6b11f2a28d6  libgcrypt-1.9.1.tar.bz2
e4689eb005596390eeec6fdccaa853aaf9e2554b6c6ca823830a48919f3004463e5dc49556f5f5183784949f05a4bc273b0c5a8e69fa8e3a9f5b61850bf6c36a  fix_building_with_disable-asm_on_x86.patch"