mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-06 15:13:51 +02:00
pinentry: switch from custom INSTALL/REMOVE scripts to xbps alternatives
This commit is contained in:
parent
783d017597
commit
81ebbe9db3
5 changed files with 9 additions and 23 deletions
|
@ -1,5 +0,0 @@
|
||||||
case ${ACTION} in
|
|
||||||
post)
|
|
||||||
ln -sf pinentry-curses usr/bin/pinentry
|
|
||||||
;;
|
|
||||||
esac
|
|
|
@ -1,5 +0,0 @@
|
||||||
case ${ACTION} in
|
|
||||||
purge)
|
|
||||||
rm -f usr/bin/pinentry
|
|
||||||
;;
|
|
||||||
esac
|
|
|
@ -1,5 +0,0 @@
|
||||||
case ${ACTION} in
|
|
||||||
post)
|
|
||||||
ln -sf pinentry-gtk-2 usr/bin/pinentry
|
|
||||||
;;
|
|
||||||
esac
|
|
|
@ -1,6 +0,0 @@
|
||||||
case ${ACTION} in
|
|
||||||
purge)
|
|
||||||
rm -f usr/bin/pinentry
|
|
||||||
[ -f usr/bin/pinentry-curses ] && ln -sf pinentry-curses usr/bin/pinentry
|
|
||||||
;;
|
|
||||||
esac
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'pinentry'
|
# Template file for 'pinentry'
|
||||||
pkgname=pinentry
|
pkgname=pinentry
|
||||||
version=1.1.0
|
version=1.1.0
|
||||||
revision=3
|
revision=4
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--disable-rpath --without-libcap --disable-pinentry-gtk
|
configure_args="--disable-rpath --without-libcap --disable-pinentry-gtk
|
||||||
--enable-pinentry-curses --enable-fallback-curses --enable-pinentry-gtk2
|
--enable-pinentry-curses --enable-fallback-curses --enable-pinentry-gtk2
|
||||||
|
@ -13,9 +13,11 @@ short_desc="PIN or passphrase entry dialogs for GnuPG"
|
||||||
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
||||||
license="GPL-2.0-or-later"
|
license="GPL-2.0-or-later"
|
||||||
homepage="https://www.gnupg.org/related_software/pinentry/index.html"
|
homepage="https://www.gnupg.org/related_software/pinentry/index.html"
|
||||||
distfiles="ftp://ftp.gnupg.org/gcrypt/${pkgname}/${pkgname}-${version}.tar.bz2"
|
distfiles="https://gnupg.org/ftp/gcrypt/pinentry/pinentry-${version}.tar.bz2"
|
||||||
checksum=68076686fa724a290ea49cdf0d1c0c1500907d1b759a3bcbfbec0293e8f56570
|
checksum=68076686fa724a290ea49cdf0d1c0c1500907d1b759a3bcbfbec0293e8f56570
|
||||||
|
|
||||||
|
alternatives="pinentry:pinentry:/usr/bin/pinentry-curses"
|
||||||
|
|
||||||
if [ "$CROSS_BUILD" ]; then
|
if [ "$CROSS_BUILD" ]; then
|
||||||
hostmakedepends+=" qt5-host-tools"
|
hostmakedepends+=" qt5-host-tools"
|
||||||
fi
|
fi
|
||||||
|
@ -31,6 +33,7 @@ post_install() {
|
||||||
pinentry-tty_package() {
|
pinentry-tty_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" for dumb terminals"
|
short_desc+=" for dumb terminals"
|
||||||
|
alternatives="pinentry:pinentry:/usr/bin/pinentry-tty"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/pinentry-tty
|
vmove usr/bin/pinentry-tty
|
||||||
}
|
}
|
||||||
|
@ -39,6 +42,7 @@ pinentry-tty_package() {
|
||||||
pinentry-qt_package() {
|
pinentry-qt_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" based on Qt"
|
short_desc+=" based on Qt"
|
||||||
|
alternatives="pinentry:pinentry:/usr/bin/pinentry-qt"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/pinentry-qt
|
vmove usr/bin/pinentry-qt
|
||||||
}
|
}
|
||||||
|
@ -47,6 +51,7 @@ pinentry-qt_package() {
|
||||||
pinentry-gtk_package() {
|
pinentry-gtk_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" based on GTK+"
|
short_desc+=" based on GTK+"
|
||||||
|
alternatives="pinentry:pinentry:/usr/bin/pinentry-gtk-2"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/pinentry-gtk-2
|
vmove usr/bin/pinentry-gtk-2
|
||||||
}
|
}
|
||||||
|
@ -55,6 +60,7 @@ pinentry-gtk_package() {
|
||||||
pinentry-emacs_package() {
|
pinentry-emacs_package() {
|
||||||
depends="${sourcepkg}>=${version}_${revision}"
|
depends="${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" - Emacs interface"
|
short_desc+=" - Emacs interface"
|
||||||
|
alternatives="pinentry:pinentry:/usr/bin/pinentry-emacs"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/pinentry-emacs
|
vmove usr/bin/pinentry-emacs
|
||||||
}
|
}
|
||||||
|
@ -63,6 +69,7 @@ pinentry-emacs_package() {
|
||||||
pinentry-gnome_package() {
|
pinentry-gnome_package() {
|
||||||
depends="libgnome-keyring ${sourcepkg}>=${version}_${revision}"
|
depends="libgnome-keyring ${sourcepkg}>=${version}_${revision}"
|
||||||
short_desc+=" for the GNOME desktop"
|
short_desc+=" for the GNOME desktop"
|
||||||
|
alternatives="pinentry:pinentry:/usr/bin/pinentry-gnome3"
|
||||||
pkg_install() {
|
pkg_install() {
|
||||||
vmove usr/bin/pinentry-gnome3
|
vmove usr/bin/pinentry-gnome3
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue