summaryrefslogblamecommitdiff
path: root/user/libidn2/APKBUILD
blob: 4af7cfea9bbd7e71202d070cb975cc7cfde56e1d (plain) (tree)






































                                                                                                                                                                   
# 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"