summaryrefslogtreecommitdiff
path: root/system/libidn/APKBUILD
blob: 5edbabdb22c109fa7dc543823fa76d2702d2527a (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
53
54
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: 
pkgname=libidn
pkgver=1.35
pkgrel=0
pkgdesc="Library for internationalized domain names"
url="https://www.gnu.org/software/libidn/"
arch="all"
license="(GPL-2.0+ OR LGPL-3.0+) AND GPL-3.0+"
depends=
makedepends=
checkdepends="diffutils"
install=
subpackages="$pkgname-doc $pkgname-dev $pkgname-lang"
source="http://ftp.gnu.org/gnu/libidn/$pkgname-$pkgver.tar.gz
	localename-test-fix.patch
	gnulib-tests-dont-require-gpg-passphrase.patch
	"

builddir="$srcdir/$pkgname-$pkgver"

# secfixes:
#   1.33-r0:
#   - CVE-2015-8948
#   - CVE-2016-6261
#   - CVE-2016-6262
#   - CVE-2016-6263

build() {
	cd "$builddir"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

check() {
	cd "$builddir"
	make check
}

package() {
	cd "$builddir"
	make DESTDIR="$pkgdir" install
}

sha512sums="782260f73b1fd8ebea8a40e2b3a6866c4f67494b2b3df03748daa9c0f842a9578932e746eb4bbf2547fccb1d65d7fc99a7977759dbe58f87f2fdd26d0fe45a09  libidn-1.35.tar.gz
ad470fa4015be1bfa61298cb0dafd3ca7f37d59308d371bd00449e9c899443d13c93f35a4c335d50ead489344f57fee2648a43a5f972a6d614e4a00b48fa3faf  localename-test-fix.patch
de8d47be61ac53364b5f8a7b12d1c16d5905805bd2405daf30a8022a3905a167cb6eddbe86faa518b98a3f315d8df8d541e6b248b46c539a4938e81a90b44852  gnulib-tests-dont-require-gpg-passphrase.patch"