/* * libidn2 — internationalized domain names (IDNA2008), for curl/wget. * * Uses its BUNDLED libunistring (the distro-standard approach — Alpine * and Gentoo do the same): linking an external static libunistring.la * confuses libtool ("was moved" — its .la records /usr/lib), which * breaks the build. Bundled = fully self-contained. */ package "libidn2" { const version = "2.3.8" const source = "https://ftp.gnu.org/gnu/libidn/libidn2-${version}.tar.gz" sha256 = "f557911bf6171621e1f72ff35f5b1825bb35b52ed45325dcdee931e5d3c0787a" license = "GPL-2.0-or-later OR LGPL-3.0-or-later" provides = ["libidn2.a"] depends = [ { name = "make" }, ] prepare { curl -L -o libidn2-${version}.tar.gz ${source} echo "f557911bf6171621e1f72ff35f5b1825bb35b52ed45325dcdee931e5d3c0787a libidn2-${version}.tar.gz" | sha256sum -c - tar xf libidn2-${version}.tar.gz --strip-components=1 } build { ./configure --prefix=${prefix} --disable-shared --with-included-libunistring make -j${jobs} } install { make DESTDIR=${destdir} install find ${destdir} -name '*.la' -delete find ${destdir} -name '*.la' -delete } }