aboutsummaryrefslogtreecommitdiffstats
path: root/main/libidn/APKBUILD
blob: 324aa3440455c55cc5009ac71430229bdd52f43e (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
# Contributor: Michael Mason <ms13sp@gmail.com>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=libidn
pkgver=1.34
pkgrel=1
pkgdesc="Encode/Decode library for internationalized domain names"
url="https://www.gnu.org/software/libidn"
arch="all"
license="GPL-2.0-or-later GPL-3.0-or-later LGPL-3.0-or-later"
depends=
makedepends=
checkdepends="diffutils"
install=
subpackages="$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 \
		--disable-doc
	make
}

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

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

sha512sums="1a9b5f2554d3953591b92010fa0fdedc438ca8bc31d2bc06c621eb5d423e81656607f09ac75bb02e1a5420459f69e82b5fb82987afa50db69793f9cd7a08365a  libidn-1.34.tar.gz
c37f9e318ab1f1e44a75074395bd8a93429265bdd3ccc6d7eae0f78beff53ff8ebac531a072d1859053ef517c7a1a6c1bf1b1f579d6dfc183df4cd016be4f825  localename-test-fix.patch"