summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorDan Theisen <djt@hxx.in>2018-07-06 00:43:24 -0700
committerDan Theisen <djt@hxx.in>2018-07-06 02:34:42 -0700
commita5083dfca971c696dcb9f3d6d43ac24e446a05bf (patch)
tree26e953882cf804f725a48610316611361da1ab6d /user
parent9155e87306fe16f41322f11f81007a6a6e2564bc (diff)
downloadpackages-a5083dfca971c696dcb9f3d6d43ac24e446a05bf.tar.gz
packages-a5083dfca971c696dcb9f3d6d43ac24e446a05bf.tar.bz2
packages-a5083dfca971c696dcb9f3d6d43ac24e446a05bf.tar.xz
packages-a5083dfca971c696dcb9f3d6d43ac24e446a05bf.zip
user/libidn2: new package, import for user/iputils
Diffstat (limited to 'user')
-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"