jobcore/pinentry/PKGBUILD

67 lines
2.3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobcore/src/branch/main/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=pinentry
pkgver=1.3.1
pkgrel=05
pkgdesc='Collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol'
url='https://gnupg.org/related_software/pinentry/'
depends=('glibc' 'ncurses' 'libassuan' 'libsecret' 'glib2'
libsecret-1.so libncursesw.so libassuan.so libglib-2.0.so)
makedepends=('qt5-base' 'gtk2-compat' 'qt5-x11extras')
optdepends=(
'gtk3: gtk backend'
'qt5-base: qt5 backend'
'qt5-x11extras: qt backend'
)
#backup=('etc/pinentry/preexec')
source=("https://www.gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2"{,.sig}
'pinentry')
## --enable-pinentry-qt becomes qt6 base --enable-pinentry-qt5 needs to be specific
## Arch seems to just worry about plasma qt6 based applications
build() {
cd "${pkgname}-${pkgver}"
./configure \
--prefix=/usr \
--enable-pinentry-tty \
--enable-pinentry-curses \
--enable-fallback-curses \
--enable-pinentry-emacs \
--disable-pinentry-gnome3 \
--enable-pinentry-qt5 \
--disable-pinentry-qt \
--enable-libsecret
make
}
package() {
cd "${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
depends+=(libglib-2.0.so libncursesw.so libsecret-1.so)
install -Dm 755 ../pinentry -t "${pkgdir}/usr/bin"
# The -gtk backend has been built to be used with GTK3.
mv "${pkgdir}/usr/bin/pinentry-gtk"{-2,}
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL')
validpgpkeys=(D8692123C4065DEA5E0F3AB5249B39D24F25E3B6 # Werner Koch (dist sig)
6DAA6E64A76D2840571B4902528897B826403ADA # Werner Koch (dist signing 2020)
AC8E115BF73E2D8D47FA9908E98E9B2D19C6C8BD) # Niibe Yutaka (GnuPG Release Key)
sha256sums=(bc72ee27c7239007ab1896c3c2fae53b076e2c9bd2483dc2769a16902bce8c04 # pinentry-1.3.1.tar.bz2
256359c895f20b9accd1483edf1bcdb7755f82a8c436d8dd6c2d066123f3ba30 # pinentry-1.3.1.tar.bz2.sig
2f961cccf9aebddf9c0823a96809a10296d7af6516460ae2d93e8ea5a433166d) # pinentry
## ada9056eaab05d2fce150012d03345aab54c8be5d7de883bdd8f4fc23fc9df63 pinentry-1.3.1-05-x86_64.pkg.tar.lz