vinix-ports / libpsl / PKGBUILD.vile
24 lines · 24 sloc · 1.19 KB · 75994b67a2c73353d1ac0f25a5f3feddbea1057e
Raw
1defpkgbuild(libpsl,
2 #:pkgname, "libpsl",
3 #:pkgver, "0.21.5",
4 #:pkgrel, 1,
5 #:pkgdesc, "Public suffix lookup and cookie domain validation library",
6 #:arch, [#:x86-64, #:aarch64],
7 #:license, "MIT",
8 #:url, "https://github.com/rockdaboot/libpsl",
9 #:depends, ["musl", "libidn2", "libunistring"],
10 #:source, ["https://github.com/rockdaboot/libpsl/releases/download/0.21.5/libpsl-0.21.5.tar.gz"],
11 #:sha256sums, ["1dcc9ceae8b128f3c0b3f654decd0e1e891afc6ff81098f227ef260449dae208"],
12 #:build, fn() {
13 run("vinix-meson", "libpsl-0.21.5", "build", "-Druntime=libidn2", "-Dbuiltin=true", "-Dtests=true", "-Ddocs=false")
14 run("meson", "compile", "-C", "build", "-j2")
15 },
16 #:check, fn() {
17 run("meson", "compile", "-C", "build", "-j2", "test-is-public-builtin", "test-registrable-domain")
18 run("vinix-run", "--library-path", "build/src", "build/tests/test-is-public-builtin")
19 run("vinix-run", "--library-path", "build/src", "build/tests/test-registrable-domain")
20 },
21 #:package, fn() {
22 run("meson", "install", "--no-rebuild", "-C", "build", "--destdir", pkgdir())
23 run("install", "-Dm644", "libpsl-0.21.5/COPYING", string-append(pkgdir(), "/usr/share/licenses/libpsl/COPYING"))
24 })
25