36 lines
1.0 KiB
Plaintext
36 lines
1.0 KiB
Plaintext
/*
|
|
* libpsl — Public Suffix List (cookie domain handling), for curl/wget.
|
|
*
|
|
* Built without libicu (the heavy Unicode dep — libidn2 covers IDN).
|
|
*/
|
|
package "libpsl" {
|
|
const version = "0.23.3"
|
|
const source = "https://github.com/rockdaboot/libpsl/releases/download/0.23.3/libpsl-0.23.3.tar.gz"
|
|
sha256 = "93941f85a1e7bd593fa94f299233cb5dfc91cd144fd9a78a6ceb75001c5b03be"
|
|
license = "MIT"
|
|
|
|
provides = ["libpsl.a"]
|
|
|
|
depends = [
|
|
{ name = "make" },
|
|
]
|
|
|
|
prepare {
|
|
curl -L -o libpsl-${version}.tar.gz ${source}
|
|
echo "93941f85a1e7bd593fa94f299233cb5dfc91cd144fd9a78a6ceb75001c5b03be libpsl-${version}.tar.gz" | sha256sum -c -
|
|
tar xf libpsl-${version}.tar.gz --strip-components=1
|
|
}
|
|
|
|
build {
|
|
./configure --prefix=${prefix} --disable-shared --enable-static --without-libicu --disable-runtime
|
|
make -j${jobs}
|
|
}
|
|
|
|
install {
|
|
make DESTDIR=${destdir} install
|
|
find ${destdir} -name '*.la' -delete
|
|
find ${destdir} -name '*.la' -delete
|
|
|
|
}
|
|
}
|