defpkgbuild(pinentry, #:pkgname, "pinentry", #:pkgver, "1.3.1", #:pkgrel, 1, #:pkgdesc, "Terminal PIN and passphrase prompt for GnuPG", #:arch, [#:x86-64, #:aarch64], #:url, "https://gnupg.org/related_software/pinentry/", #:license, "GPL-2.0-or-later", #:depends, ["musl", "libassuan", "libgpg-error", "libcap", "ncurses"], #:source, ["https://gnupg.org/ftp/gcrypt/pinentry/pinentry-1.3.1.tar.bz2"], #:sha256sums, ["bc72ee27c7239007ab1896c3c2fae53b076e2c9bd2483dc2769a16902bce8c04"], #:build, fn() { root := get-environment-variable("VPAC_MAKEPKG_ROOT") run("vinix-configure", "pinentry-1.3.1/configure", "--enable-pinentry-tty", "--enable-pinentry-curses", "--disable-libsecret", "--disable-pinentry-qt5", "--disable-pinentry-qt", "--disable-pinentry-gtk2", "--disable-pinentry-gnome3", "--disable-pinentry-fltk", string-append("--with-libgpg-error-prefix=", root, "/usr"), string-append("--with-libassuan-prefix=", root, "/usr")) run("make") }, #:check, fn() { run("vinix-run", "tty/pinentry-tty", "--version") }, #:package, fn() { run("make", "install", string-append("DESTDIR=", pkgdir())) run("rm", "-f", string-append(pkgdir(), "/usr/share/info/dir")) run("find", pkgdir(), "-name", "*.la", "-delete") run("install", "-Dm644", "pinentry-1.3.1/COPYING", string-append(pkgdir(), "/usr/share/licenses/pinentry/COPYING")) })