aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBart Ribbers <bribbers@disroot.org>2019-12-07 15:56:14 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2019-12-12 13:05:57 +0000
commita7126e21b06d836a6dd44cd8e239344bf83e469a (patch)
tree7e983a826288010249a33f07fa4c40af7eaed306
parent394139d99a1db70862678314bfba18276f8211cd (diff)
downloadaports-a7126e21b06d836a6dd44cd8e239344bf83e469a.tar.bz2
aports-a7126e21b06d836a6dd44cd8e239344bf83e469a.tar.xz
community/pinentry-ui: new aport
-rw-r--r--community/pinentry-ui/APKBUILD63
-rw-r--r--community/pinentry-ui/pinentry-gnome.post-deinstall8
-rw-r--r--community/pinentry-ui/pinentry-gnome.post-install4
-rw-r--r--community/pinentry-ui/pinentry-gtk.post-deinstall8
-rw-r--r--community/pinentry-ui/pinentry-gtk.post-install4
-rw-r--r--community/pinentry-ui/pinentry-qt.post-deinstall8
-rw-r--r--community/pinentry-ui/pinentry-qt.post-install4
-rw-r--r--community/pinentry-ui/pinentry.post-deinstall6
-rw-r--r--community/pinentry-ui/pinentry.post-install6
9 files changed, 111 insertions, 0 deletions
diff --git a/community/pinentry-ui/APKBUILD b/community/pinentry-ui/APKBUILD
new file mode 100644
index 0000000000..c6b6eb8c25
--- /dev/null
+++ b/community/pinentry-ui/APKBUILD
@@ -0,0 +1,63 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=pinentry-ui
+pkgver=1.1.0
+pkgrel=0
+pkgdesc="Graphical UI's for Pinentry"
+url="http://www.gnupg.org/aegypten2"
+arch="all"
+license="GPL-2.0-or-later"
+makedepends="libcap-dev gtk+-dev libgpg-error-dev libassuan-dev
+ gcr-dev libsecret-dev qt5-qtbase-dev"
+subpackages="pinentry-gtk pinentry-gnome pinentry-qt"
+source="ftp://ftp.gnupg.org/gcrypt/pinentry/pinentry-$pkgver.tar.bz2"
+builddir="$srcdir/pinentry-$pkgver"
+
+build () {
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --disable-pinentry-gtk \
+ --enable-pinentry-gtk2 \
+ --enable-pinentry-qt \
+ --disable-pinentry-curses \
+ --disable-fallback-curses \
+ --enable-pinentry-gnome3 \
+ --enable-libsecret
+ make
+}
+
+check() {
+ make check
+}
+
+package() {
+ make DESTDIR="$pkgdir" install
+
+ # created by post install scripts so we can override with other UI versions
+ rm -f "$pkgdir"/usr/bin/pinentry
+}
+
+gtk() {
+ install="pinentry-gtk.post-install pinentry-gtk.post-deinstall"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/pinentry-gtk* \
+ "$subpkgdir"/usr/bin/
+}
+
+gnome() {
+ install="pinentry-gnome.post-install pinentry-gnome.post-deinstall"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/pinentry-gnome3 \
+ "$subpkgdir"/usr/bin/
+}
+
+qt() {
+ install="pinentry-qt.post-install pinentry-qt.post-deinstall"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/pinentry-qt* \
+ "$subpkgdir"/usr/bin/
+}
+
+sha512sums="5012672925bcb5f683358c259e55e4b87c67cf063ad52c759308933733025c33f7ce08e5b8019ffc101cbf7ef30499040ef2fd34a7611698e65e1593f80948cd pinentry-1.1.0.tar.bz2"
diff --git a/community/pinentry-ui/pinentry-gnome.post-deinstall b/community/pinentry-ui/pinentry-gnome.post-deinstall
new file mode 100644
index 0000000000..887ef798ae
--- /dev/null
+++ b/community/pinentry-ui/pinentry-gnome.post-deinstall
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -f /usr/bin/pinentry-curses ]; then
+ ln -sf pinentry-curses /usr/bin/pinentry
+else
+ rm -f /usr/bin/pinentry
+fi
+
diff --git a/community/pinentry-ui/pinentry-gnome.post-install b/community/pinentry-ui/pinentry-gnome.post-install
new file mode 100644
index 0000000000..291dba7517
--- /dev/null
+++ b/community/pinentry-ui/pinentry-gnome.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+ln -sf pinentry-gnome3 /usr/bin/pinentry
+
diff --git a/community/pinentry-ui/pinentry-gtk.post-deinstall b/community/pinentry-ui/pinentry-gtk.post-deinstall
new file mode 100644
index 0000000000..887ef798ae
--- /dev/null
+++ b/community/pinentry-ui/pinentry-gtk.post-deinstall
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -f /usr/bin/pinentry-curses ]; then
+ ln -sf pinentry-curses /usr/bin/pinentry
+else
+ rm -f /usr/bin/pinentry
+fi
+
diff --git a/community/pinentry-ui/pinentry-gtk.post-install b/community/pinentry-ui/pinentry-gtk.post-install
new file mode 100644
index 0000000000..8b51ca005f
--- /dev/null
+++ b/community/pinentry-ui/pinentry-gtk.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+ln -sf pinentry-gtk-2 /usr/bin/pinentry
+
diff --git a/community/pinentry-ui/pinentry-qt.post-deinstall b/community/pinentry-ui/pinentry-qt.post-deinstall
new file mode 100644
index 0000000000..887ef798ae
--- /dev/null
+++ b/community/pinentry-ui/pinentry-qt.post-deinstall
@@ -0,0 +1,8 @@
+#!/bin/sh
+
+if [ -f /usr/bin/pinentry-curses ]; then
+ ln -sf pinentry-curses /usr/bin/pinentry
+else
+ rm -f /usr/bin/pinentry
+fi
+
diff --git a/community/pinentry-ui/pinentry-qt.post-install b/community/pinentry-ui/pinentry-qt.post-install
new file mode 100644
index 0000000000..245c8e681a
--- /dev/null
+++ b/community/pinentry-ui/pinentry-qt.post-install
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+ln -sf pinentry-qt /usr/bin/pinentry
+
diff --git a/community/pinentry-ui/pinentry.post-deinstall b/community/pinentry-ui/pinentry.post-deinstall
new file mode 100644
index 0000000000..38939e5b49
--- /dev/null
+++ b/community/pinentry-ui/pinentry.post-deinstall
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if ! [ -f /usr/bin/pinentry-gtk-2 ]; then
+ rm -f /usr/bin/pinentry
+fi
+
diff --git a/community/pinentry-ui/pinentry.post-install b/community/pinentry-ui/pinentry.post-install
new file mode 100644
index 0000000000..0dfd31e955
--- /dev/null
+++ b/community/pinentry-ui/pinentry.post-install
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+if ! [ -f /usr/bin/pinentry-gtk-2 ]; then
+ ln -sf pinentry-curses /usr/bin/pinentry
+fi
+