35 lines
960 B
Plaintext
35 lines
960 B
Plaintext
/*
|
|
* libunistring — Unicode string library (base for libidn2 and wget).
|
|
*
|
|
* Standard autotools static build; no external deps.
|
|
*/
|
|
package "libunistring" {
|
|
const version = "1.4"
|
|
const source = "https://ftp.gnu.org/gnu/libunistring/libunistring-${version}.tar.gz"
|
|
sha256 = "f7e39ddeca18858ecdd02c60d1d5374fcdcbbcdb6b68a391f8497cb1cb2cf3f7"
|
|
license = "LGPL-3.0-or-later"
|
|
|
|
provides = ["libunistring.a"]
|
|
|
|
depends = [
|
|
{ name = "make" },
|
|
]
|
|
|
|
prepare {
|
|
curl -L -o libunistring-${version}.tar.gz ${source}
|
|
echo "f7e39ddeca18858ecdd02c60d1d5374fcdcbbcdb6b68a391f8497cb1cb2cf3f7 libunistring-${version}.tar.gz" | sha256sum -c -
|
|
tar xf libunistring-${version}.tar.gz --strip-components=1
|
|
}
|
|
|
|
build {
|
|
./configure --prefix=${prefix} --disable-shared
|
|
make -j${jobs}
|
|
}
|
|
|
|
install {
|
|
make DESTDIR=${destdir} install
|
|
find ${destdir} -name '*.la' -delete
|
|
|
|
}
|
|
}
|