vinix-ports / libgpg-error / PKGBUILD.vile
27 lines · 27 sloc · 1.26 KB · 365cf92c9cdfd3838ff5b45c687b33d996bdcf59
Raw
1defpkgbuild(libgpg-error,
2 #:pkgname, "libgpg-error",
3 #:pkgver, "1.51",
4 #:pkgrel, 2,
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("rm", "-f", string-append(pkgdir(), "/usr/share/info/dir"))
25 run("find", pkgdir(), "-name", "*.la", "-delete")
26 run("install", "-Dm644", "libgpg-error-1.51/COPYING.LIB", string-append(pkgdir(), "/usr/share/licenses/libgpg-error/COPYING.LIB"))
27 })
28