aboutsummaryrefslogtreecommitdiffstats
path: root/main/libidn/APKBUILD
blob: b83aa9330adb7b42fb56e75a2d16f265b7d5885a (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libidn
pkgver=1.33
pkgrel=1
pkgdesc="An encode and decode library for internationalized domain names"
url="https://www.gnu.org/software/libidn/"
arch="all"
license="GPL"
depends=
makedepends=
checkdepends="diffutils"
install=
subpackages="$pkgname-doc $pkgname-dev"
source="http://ftp.gnu.org/gnu/libidn/$pkgname-$pkgver.tar.gz
	localename-test-fix.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 \
		--disable-nls
	make
}

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

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

sha512sums="38dd459eaeda0c9e3cc2d24d967113515a499747550a2a9157f32357def90d71a3a3b52398e96a44a28cd5948dc353b0473c4ff0453a69720191c4cb49cac2c6  libidn-1.33.tar.gz
8251a6543a93db357181121d2f3895dd15d47b97e7c6b0004b1534f0479f8b08c380d184cb024dde9a158b967fad0643ea2a793e88bf90f07f3e67146ebab190  localename-test-fix.patch"