me

/

vinix-ports Public
382 commits 0 issues 0 pull requests 1 contributor Discussions Projects Snippets LOC history Platform CI

Package IDNA conversion and public suffix lookups for curl

diviocity committed 6 days ago · 75994b67a2c73353d1ac0f25a5f3feddbea1057e View patch
Unverified signature 2 files changed +49 -0
libidn2/PKGBUILD.vile new file +25 -0

@@ -0,0 +1,25 @@

1+defpkgbuild(libidn2,

2+ #:pkgname, "libidn2",

3+ #:pkgver, "2.3.7",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "Internationalized domain names using IDNA2008",

6+ #:arch, [#:x86-64, #:aarch64],

7+ #:url, "https://www.gnu.org/software/libidn/",

8+ #:license, "GPL-2.0-or-later OR LGPL-3.0-or-later",

9+ #:depends, ["musl", "libunistring"],

10+ #:source, ["https://ftp.gnu.org/gnu/libidn/libidn2-2.3.7.tar.gz"],

11+ #:sha256sums, ["4c21a791b610b9519b9d0e12b8097bf2f359b12f8dd92647611a929e6bfd7d64"],

12+ #:build, fn() {

13+ run("vinix-configure", "libidn2-2.3.7/configure", "--disable-nls")

14+ run("make")

15+ },

16+ #:check, fn() {

17+ run("env", "LC_ALL=C.UTF-8", "vinix-run", "--library-path", "lib/.libs", "src/.libs/idn2", "bücher.test")

18+ run("env", "LC_ALL=C.UTF-8", "vinix-run", "--library-path", "lib/.libs", "src/.libs/idn2", "-d", "xn--bcher-kva.test")

19+ },

20+ #:package, fn() {

21+ run("make", "install", string-append("DESTDIR=", pkgdir()))

22+ run("rm", "-f", string-append(pkgdir(), "/usr/share/info/dir"))

23+ run("find", pkgdir(), "-name", "*.la", "-delete")

24+ run("install", "-Dm644", "libidn2-2.3.7/COPYING", string-append(pkgdir(), "/usr/share/licenses/libidn2/COPYING"))

25+ })

libpsl/PKGBUILD.vile new file +24 -0

@@ -0,0 +1,24 @@

1+defpkgbuild(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+ })