Package the GnuPG error, IPC and cryptography libraries
@@ -0,0 +1,24 @@
1+defpkgbuild(libassuan,
2+ #:pkgname, "libassuan",
3+ #:pkgver, "2.5.7",
4+ #:pkgrel, 1,
5+ #:pkgdesc, "Assuan IPC library for GnuPG and GPGME",
6+ #:arch, [#:x86-64, #:aarch64],
7+ #:url, "https://www.gnupg.org/software/libassuan/",
8+ #:license, "LGPL-2.1-or-later",
9+ #:depends, ["musl", "libgpg-error"],
10+ #:source, ["https://www.gnupg.org/ftp/gcrypt/libassuan/libassuan-2.5.7.tar.bz2"],
11+ #:sha256sums, ["0103081ffc27838a2e50479153ca105e873d3d65d8a9593282e9c94c7e6afb76"],
12+ #:build, fn() {
13+ root := get-environment-variable("VPAC_MAKEPKG_ROOT")
14+ run("vinix-configure", "libassuan-2.5.7/configure", string-append("--with-libgpg-error-prefix=", root, "/usr"))
15+ run("make")
16+ },
17+ #:check, fn() {
18+ run("vinix-run", "--library-path", "src/.libs", "tests/version")
19+ },
20+ #:package, fn() {
21+ run("make", "install", string-append("DESTDIR=", pkgdir()))
22+ run("find", pkgdir(), "-name", "*.la", "-delete")
23+ run("install", "-Dm644", "libassuan-2.5.7/COPYING.LIB", string-append(pkgdir(), "/usr/share/licenses/libassuan/COPYING.LIB"))
24+ })
@@ -0,0 +1,27 @@
1+defpkgbuild(libgcrypt,
2+ #:pkgname, "libgcrypt",
3+ #:pkgver, "1.10.3",
4+ #:pkgrel, 1,
5+ #:pkgdesc, "Cryptographic primitives for GnuPG",
6+ #:arch, [#:x86-64, #:aarch64],
7+ #:url, "https://www.gnupg.org/software/libgcrypt/",
8+ #:license, "LGPL-2.1-or-later AND GPL-2.0-or-later",
9+ #:depends, ["musl", "libgpg-error"],
10+ #:source, ["https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-1.10.3.tar.bz2"],
11+ #:sha256sums, ["8b0870897ac5ac67ded568dcfadf45969cfa8a6beb0fd60af2a9eadc2a3272aa"],
12+ #:build, fn() {
13+ root := get-environment-variable("VPAC_MAKEPKG_ROOT")
14+ run("vinix-configure", "libgcrypt-1.10.3/configure", string-append("--with-libgpg-error-prefix=", root, "/usr"))
15+ run("make")
16+ },
17+ #:check, fn() {
18+ run("vinix-run", "--library-path", "src/.libs", "tests/version")
19+ run("vinix-run", "--library-path", "src/.libs", "tests/t-sexp")
20+ run("vinix-run", "--library-path", "src/.libs", "tests/aeswrap")
21+ run("vinix-run", "--library-path", "src/.libs", "tests/t-kdf")
22+ },
23+ #:package, fn() {
24+ run("make", "install", string-append("DESTDIR=", pkgdir()))
25+ run("find", pkgdir(), "-name", "*.la", "-delete")
26+ run("install", "-Dm644", "libgcrypt-1.10.3/COPYING.LIB", string-append(pkgdir(), "/usr/share/licenses/libgcrypt/COPYING.LIB"))
27+ })
@@ -0,0 +1,26 @@
1+defpkgbuild(libgpg-error,
2+ #:pkgname, "libgpg-error",
3+ #:pkgver, "1.51",
4+ #:pkgrel, 1,
5+ #:pkgdesc, "Common error codes and runtime support for GnuPG",
6+ #:arch, [#:x86-64, #:aarch64],
7+ #:url, "https://www.gnupg.org/software/libgpg-error/",
8+ #:license, "GPL-2.0-or-later AND LGPL-2.1-or-later",
9+ #:depends, ["musl"],
10+ #:source, ["https://gnupg.org/ftp/gcrypt/libgpg-error/libgpg-error-1.51.tar.bz2"],
11+ #:sha256sums, ["be0f1b2db6b93eed55369cdf79f19f72750c8c7c39fc20b577e724545427e6b2"],
12+ #:build, fn() {
13+ run("vinix-configure", "libgpg-error-1.51/configure", "--enable-install-gpg-error-config", "--disable-nls")
14+ run("make")
15+ },
16+ #:check, fn() {
17+ run("vinix-run", "--library-path", "src/.libs", "tests/t-version")
18+ run("vinix-run", "--library-path", "src/.libs", "tests/t-strerror")
19+ run("vinix-run", "--library-path", "src/.libs", "tests/t-b64")
20+ run("vinix-run", "--library-path", "src/.libs", "tests/t-lock")
21+ },
22+ #:package, fn() {
23+ run("make", "install", string-append("DESTDIR=", pkgdir()))
24+ run("find", pkgdir(), "-name", "*.la", "-delete")
25+ run("install", "-Dm644", "libgpg-error-1.51/COPYING.LIB", string-append(pkgdir(), "/usr/share/licenses/libgpg-error/COPYING.LIB"))
26+ })