summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--user/libidn2/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/user/libidn2/APKBUILD b/user/libidn2/APKBUILD
new file mode 100644
index 000000000..4af7cfea9
--- /dev/null
+++ b/user/libidn2/APKBUILD
@@ -0,0 +1,39 @@
+# Contributor: Dan Theisen <djt@hxx.in>
+# Maintainer: Dan Theisen <djt@hxx.in>
+pkgname=libidn2
+pkgver=2.0.5
+pkgrel=0
+pkgdesc="A free implementation of IDNA2008, Punycode, and TR46"
+url="https://gitlab.com/libidn/libidn2"
+arch="all"
+license="GPL-2.0-or-later OR LGPL-3.0-or-later"
+depends=""
+depends_dev=""
+makedepends="$depends_dev libunistring-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+source="https://ftp.gnu.org/gnu/libidn/libidn2-$pkgver.tar.gz"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var
+ make
+}
+
+check() {
+ cd "$builddir"
+ make check
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+sha512sums="9d040d60de40316788825d8720d509d5b8a82287415e09e17792c2f32fad99ca77f43e55888b9484db69426eaa0ece59e9671eee9cc46411afbdb0f81af31a79 libidn2-2.0.5.tar.gz"