vinix-ports / ports / pinentry / PKGBUILD.vile
28 lines · 28 sloc · 1.38 KB · c33d8afc2906b8dd9a8b905224eccd49a44f7ad5
Raw
1defpkgbuild(pinentry,
2 #:pkgname, "pinentry",
3 #:pkgver, "1.3.1",
4 #:pkgrel, 1,
5 #:pkgdesc, "Terminal PIN and passphrase prompt for GnuPG",
6 #:arch, [#:x86-64, #:aarch64],
7 #:url, "https://gnupg.org/related_software/pinentry/",
8 #:license, "GPL-2.0-or-later",
9 #:depends, ["musl", "libassuan", "libgpg-error", "libcap", "ncurses"],
10 #:source, ["https://gnupg.org/ftp/gcrypt/pinentry/pinentry-1.3.1.tar.bz2"],
11 #:sha256sums, ["bc72ee27c7239007ab1896c3c2fae53b076e2c9bd2483dc2769a16902bce8c04"],
12 #:build, fn() {
13 root := get-environment-variable("VPAC_MAKEPKG_ROOT")
14 run("vinix-configure", "pinentry-1.3.1/configure", "--enable-pinentry-tty", "--enable-pinentry-curses",
15 "--disable-libsecret", "--disable-pinentry-qt5", "--disable-pinentry-qt", "--disable-pinentry-gtk2",
16 "--disable-pinentry-gnome3", "--disable-pinentry-fltk", string-append("--with-libgpg-error-prefix=", root, "/usr"),
17 string-append("--with-libassuan-prefix=", root, "/usr"))
18 run("make")
19 },
20 #:check, fn() {
21 run("vinix-run", "tty/pinentry-tty", "--version")
22 },
23 #:package, fn() {
24 run("make", "install", string-append("DESTDIR=", pkgdir()))
25 run("rm", "-f", string-append(pkgdir(), "/usr/share/info/dir"))
26 run("find", pkgdir(), "-name", "*.la", "-delete")
27 run("install", "-Dm644", "pinentry-1.3.1/COPYING", string-append(pkgdir(), "/usr/share/licenses/pinentry/COPYING"))
28 })
29