me

/

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

Package npth, libmd and Jansson with target-side upstream tests

diviocity committed 6 days ago · 85a7c5cdcc87cb57cf3cf172138e5d14764b2726 View patch
Unverified signature 3 files changed +79 -0
jansson/PKGBUILD.vile new file +25 -0

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

1+defpkgbuild(jansson,

2+ #:pkgname, "jansson",

3+ #:pkgver, "2.14",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "JSON encoding, decoding and data manipulation",

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

7+ #:url, "https://digip.org/jansson/",

8+ #:license, "MIT",

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

10+ #:source, ["https://github.com/akheron/jansson/releases/download/v2.14/jansson-2.14.tar.gz"],

11+ #:sha256sums, ["5798d010e41cf8d76b66236cfb2f2543c8d082181d16bc3085ab49538d4b9929"],

12+ #:build, fn() {

13+ run("vinix-configure", "jansson-2.14/configure")

14+ run("make")

15+ },

16+ #:check, fn() {

17+ run("vinix-cc", "-Isrc", "-Ijansson-2.14/src", "jansson-2.14/test/suites/api/test_load.c",

18+ "-Lsrc/.libs", "-ljansson", "-o", "test-load")

19+ run("vinix-run", "--library-path", "src/.libs", "./test-load")

20+ },

21+ #:package, fn() {

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

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

24+ run("install", "-Dm644", "jansson-2.14/LICENSE", string-append(pkgdir(), "/usr/share/licenses/jansson/LICENSE"))

25+ })

libmd/PKGBUILD.vile new file +29 -0

@@ -0,0 +1,29 @@

1+defpkgbuild(libmd,

2+ #:pkgname, "libmd",

3+ #:pkgver, "1.1.0",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "BSD message digest functions",

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

7+ #:url, "https://www.hadrons.org/software/libmd/",

8+ #:license, "BSD-3-Clause AND BSD-2-Clause AND ISC AND Beerware AND LicenseRef-Public-Domain",

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

10+ #:source, ["https://archive.hadrons.org/software/libmd/libmd-1.1.0.tar.xz"],

11+ #:sha256sums, ["1bd6aa42275313af3141c7cf2e5b964e8b1fd488025caf2f971f43b00776b332"],

12+ #:build, fn() {

13+ run("vinix-configure", "libmd-1.1.0/configure")

14+ run("make")

15+ },

16+ #:check, fn() {

17+ run("make", "-C", "test", "md2", "md4", "md5", "rmd160", "sha1", "sha2")

18+ run("vinix-run", "--library-path", "src/.libs", "test/.libs/md2")

19+ run("vinix-run", "--library-path", "src/.libs", "test/.libs/md4")

20+ run("vinix-run", "--library-path", "src/.libs", "test/.libs/md5")

21+ run("vinix-run", "--library-path", "src/.libs", "test/.libs/rmd160")

22+ run("vinix-run", "--library-path", "src/.libs", "test/.libs/sha1")

23+ run("vinix-run", "--library-path", "src/.libs", "test/.libs/sha2")

24+ },

25+ #:package, fn() {

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

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

28+ run("install", "-Dm644", "libmd-1.1.0/COPYING", string-append(pkgdir(), "/usr/share/licenses/libmd/COPYING"))

29+ })

npth/PKGBUILD.vile new file +25 -0

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

1+defpkgbuild(npth,

2+ #:pkgname, "npth",

3+ #:pkgver, "1.6",

4+ #:pkgrel, 1,

5+ #:pkgdesc, "Portable threads library for GnuPG",

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

7+ #:url, "https://gnupg.org/related_software/npth/",

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

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

10+ #:source, ["https://gnupg.org/ftp/gcrypt/npth/npth-1.6.tar.bz2"],

11+ #:sha256sums, ["1393abd9adcf0762d34798dc34fdcf4d0d22a8410721e76f1e3afcd1daa4e2d1"],

12+ #:build, fn() {

13+ run("vinix-configure", "npth-1.6/configure")

14+ run("make")

15+ },

16+ #:check, fn() {

17+ run("vinix-run", "--library-path", "src/.libs", "tests/.libs/t-thread")

18+ run("vinix-run", "--library-path", "src/.libs", "tests/.libs/t-mutex")

19+ run("vinix-run", "--library-path", "src/.libs", "tests/.libs/t-fork")

20+ },

21+ #:package, fn() {

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

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

24+ run("install", "-Dm644", "npth-1.6/COPYING.LIB", string-append(pkgdir(), "/usr/share/licenses/npth/COPYING.LIB"))

25+ })