aboutsummaryrefslogtreecommitdiffstats
path: root/main/libidn2
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2019-07-18 14:53:22 -0400
committerKevin Daudt <kdaudt@alpinelinux.org>2019-07-18 18:54:06 +0000
commitfe9be4215dec2db251f7fd72866dbd00af8f1073 (patch)
tree286254bb45a5fe734f28dc74562814ab3105d20f /main/libidn2
parentdae4015e43e0d78fbb48450491123c6dac41c6e9 (diff)
downloadaports-fe9be4215dec2db251f7fd72866dbd00af8f1073.tar.bz2
aports-fe9be4215dec2db251f7fd72866dbd00af8f1073.tar.xz
main/libidn2: new APKBUILD
Based on main/libidn.
Diffstat (limited to 'main/libidn2')
-rw-r--r--main/libidn2/APKBUILD38
1 files changed, 38 insertions, 0 deletions
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 <sir@cmpwn.com>
+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"