From 85a7c5cdcc87cb57cf3cf172138e5d14764b2726 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 00:03:42 +0100 Subject: [PATCH] Package npth, libmd and Jansson with target-side upstream tests --- jansson/PKGBUILD.vile | 25 +++++++++++++++++++++++++ libmd/PKGBUILD.vile | 29 +++++++++++++++++++++++++++++ npth/PKGBUILD.vile | 25 +++++++++++++++++++++++++ 3 files changed, 79 insertions(+) create mode 100644 jansson/PKGBUILD.vile create mode 100644 libmd/PKGBUILD.vile create mode 100644 npth/PKGBUILD.vile diff --git a/jansson/PKGBUILD.vile b/jansson/PKGBUILD.vile new file mode 100644 index 0000000..e93a9ff --- /dev/null +++ b/jansson/PKGBUILD.vile @@ -0,0 +1,25 @@ +defpkgbuild(jansson, + #:pkgname, "jansson", + #:pkgver, "2.14", + #:pkgrel, 1, + #:pkgdesc, "JSON encoding, decoding and data manipulation", + #:arch, [#:x86-64, #:aarch64], + #:url, "https://digip.org/jansson/", + #:license, "MIT", + #:depends, ["musl"], + #:source, ["https://github.com/akheron/jansson/releases/download/v2.14/jansson-2.14.tar.gz"], + #:sha256sums, ["5798d010e41cf8d76b66236cfb2f2543c8d082181d16bc3085ab49538d4b9929"], + #:build, fn() { + run("vinix-configure", "jansson-2.14/configure") + run("make") + }, + #:check, fn() { + run("vinix-cc", "-Isrc", "-Ijansson-2.14/src", "jansson-2.14/test/suites/api/test_load.c", + "-Lsrc/.libs", "-ljansson", "-o", "test-load") + run("vinix-run", "--library-path", "src/.libs", "./test-load") + }, + #:package, fn() { + run("make", "install", string-append("DESTDIR=", pkgdir())) + run("find", pkgdir(), "-name", "*.la", "-delete") + run("install", "-Dm644", "jansson-2.14/LICENSE", string-append(pkgdir(), "/usr/share/licenses/jansson/LICENSE")) + }) diff --git a/libmd/PKGBUILD.vile b/libmd/PKGBUILD.vile new file mode 100644 index 0000000..0888817 --- /dev/null +++ b/libmd/PKGBUILD.vile @@ -0,0 +1,29 @@ +defpkgbuild(libmd, + #:pkgname, "libmd", + #:pkgver, "1.1.0", + #:pkgrel, 1, + #:pkgdesc, "BSD message digest functions", + #:arch, [#:x86-64, #:aarch64], + #:url, "https://www.hadrons.org/software/libmd/", + #:license, "BSD-3-Clause AND BSD-2-Clause AND ISC AND Beerware AND LicenseRef-Public-Domain", + #:depends, ["musl"], + #:source, ["https://archive.hadrons.org/software/libmd/libmd-1.1.0.tar.xz"], + #:sha256sums, ["1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332"], + #:build, fn() { + run("vinix-configure", "libmd-1.1.0/configure") + run("make") + }, + #:check, fn() { + run("make", "-C", "test", "md2", "md4", "md5", "rmd160", "sha1", "sha2") + run("vinix-run", "--library-path", "src/.libs", "test/.libs/md2") + run("vinix-run", "--library-path", "src/.libs", "test/.libs/md4") + run("vinix-run", "--library-path", "src/.libs", "test/.libs/md5") + run("vinix-run", "--library-path", "src/.libs", "test/.libs/rmd160") + run("vinix-run", "--library-path", "src/.libs", "test/.libs/sha1") + run("vinix-run", "--library-path", "src/.libs", "test/.libs/sha2") + }, + #:package, fn() { + run("make", "install", string-append("DESTDIR=", pkgdir())) + run("find", pkgdir(), "-name", "*.la", "-delete") + run("install", "-Dm644", "libmd-1.1.0/COPYING", string-append(pkgdir(), "/usr/share/licenses/libmd/COPYING")) + }) diff --git a/npth/PKGBUILD.vile b/npth/PKGBUILD.vile new file mode 100644 index 0000000..2edcdce --- /dev/null +++ b/npth/PKGBUILD.vile @@ -0,0 +1,25 @@ +defpkgbuild(npth, + #:pkgname, "npth", + #:pkgver, "1.6", + #:pkgrel, 1, + #:pkgdesc, "Portable threads library for GnuPG", + #:arch, [#:x86-64, #:aarch64], + #:url, "https://gnupg.org/related_software/npth/", + #:license, "LGPL-2.0-or-later", + #:depends, ["musl"], + #:source, ["https://gnupg.org/ftp/gcrypt/npth/npth-1.6.tar.bz2"], + #:sha256sums, ["1393abd9adcf0762d34798dc34fdcf4d0d22a8410721e76f1e3afcd1daa4e2d1"], + #:build, fn() { + run("vinix-configure", "npth-1.6/configure") + run("make") + }, + #:check, fn() { + run("vinix-run", "--library-path", "src/.libs", "tests/.libs/t-thread") + run("vinix-run", "--library-path", "src/.libs", "tests/.libs/t-mutex") + run("vinix-run", "--library-path", "src/.libs", "tests/.libs/t-fork") + }, + #:package, fn() { + run("make", "install", string-append("DESTDIR=", pkgdir())) + run("find", pkgdir(), "-name", "*.la", "-delete") + run("install", "-Dm644", "npth-1.6/COPYING.LIB", string-append(pkgdir(), "/usr/share/licenses/npth/COPYING.LIB")) + }) -- 2.56.1