Subject: [PATCH v2] main/libidn2: new APKBUILD

From: Drew DeVault <[email-masked]>
Date: Thu, 18 Jul 2019 14:53:22 -0400

Based on main/libidn.
---
Added -static and dropped explicit cd "$builddir"

 main/libidn2/APKBUILD | 38 ++++++++++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 main/libidn2/APKBUILD

diff --git a/main/libidn2/APKBUILD b/main/libidn2/APKBUILD
new file mode 100644
index 0000000000..c9fb81752c
--- /dev/null
+++ b/main/libidn2/APKBUILD
@@ -0,0 +1,38 @@
+# Maintainer: Drew DeVault <[email-masked]>
+pkgname=libidn2
+pkgver=2.2.0
+pkgrel=0
+pkgdesc="Encode/Decode library for internationalized domain names"
+url="https://www.gnu.org/software/libidn#libidn2"
+arch="all"
+license="GPL-2.0-or-later GPL-3.0-or-later LGPL-3.0-or-later"
+makedepends="libunistring-dev"
+checkdepends="diffutils"
+subpackages="$pkgname-static $pkgname-dev $pkgname-doc"
+source="https://ftp.gnu.org/gnu/libidn/$pkgname-$pkgver.tar.gz"
+builddir="$srcdir/$pkgname-$pkgver"
+
+build() {
+	./configure \
+		--build=$CBUILD \
+		--host=$CHOST \
+		--prefix=/usr \
+		--sysconfdir=/etc \
+		--mandir=/usr/share/man \
+		--infodir=/usr/share/info \
+		--disable-nls
+	make
+}
+
+check() {
+	make check
+}
+
+package() {
+	make DESTDIR="$pkgdir" install
+
+	# only keep man pages
+	rm -rf "$pkgdir"/usr/share/info
+}
+
+sha512sums="ccf56056a378d49a28ff67a2a23cd3d32ce51f86a78f84839b98dad709a1d0d03ac8d7c1496f0e4d3536bca00e3d09d34d76a37317b2ce87e3aa66bdf4e877b8  libidn2-2.2.0.tar.gz"
-- 
2.22.0