| 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 | }) |
| 27 | |