summaryrefslogtreecommitdiff
path: root/pinentry
diff options
context:
space:
mode:
authorThomas Penteker <tek@serverop.de>2016-06-01 22:29:59 +0200
committerThomas Penteker <tek@serverop.de>2016-06-01 22:29:59 +0200
commitdf3b66cf8021a5734907a125d92acc6cb792e906 (patch)
tree312868a466305c8bfd84640933246a8db5d602e2 /pinentry
parenta6b564dc2367a3d9b969ea523b956742740d67d7 (diff)
downloadopt-df3b66cf8021a5734907a125d92acc6cb792e906.tar.gz
opt-df3b66cf8021a5734907a125d92acc6cb792e906.tar.xz
pinentry: account for qt4/5; patches by jue
Diffstat (limited to 'pinentry')
-rw-r--r--pinentry/.md5sum2
-rw-r--r--pinentry/Pkgfile9
-rwxr-xr-xpinentry/pinentry8
3 files changed, 11 insertions, 8 deletions
diff --git a/pinentry/.md5sum b/pinentry/.md5sum
index c44237d74..417acc946 100644
--- a/pinentry/.md5sum
+++ b/pinentry/.md5sum
@@ -1,2 +1,2 @@
-422de36ebe2ea9c4102a33f7306c2ae3 pinentry
+b3f2692e792f14df7d0ccfcc19399f66 pinentry
9510b2de013e818dab619e468298703a pinentry-0.9.7.tar.bz2
diff --git a/pinentry/Pkgfile b/pinentry/Pkgfile
index d4d59359a..7edb624d1 100644
--- a/pinentry/Pkgfile
+++ b/pinentry/Pkgfile
@@ -7,22 +7,21 @@
name=pinentry
version=0.9.7
-release=1
+release=2
source=(ftp://ftp.gnupg.org/gcrypt/$name/$name-$version.tar.bz2 pinentry)
build() {
cd $name-$version
- sed -i 's|<ncursesw/|<|g' pinentry/pinentry-curses.c
-
./configure \
--prefix=/usr \
- --disable-pinentry-{gtk2,qt4} \
+ --disable-pinentry-{gtk2,qt,qt5} \
--enable-pinentry-curses
+
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share
rm $PKG/usr/bin/pinentry
- install -m 755 ../pinentry $PKG/usr/bin/pinentry
+ install -m 755 $SRC/pinentry $PKG/usr/bin/pinentry
}
diff --git a/pinentry/pinentry b/pinentry/pinentry
index 94f242392..443bd7cb7 100755
--- a/pinentry/pinentry
+++ b/pinentry/pinentry
@@ -1,8 +1,12 @@
#!/bin/sh
# pinentry wrapper
-if [ -x /usr/bin/pinentry-qt4 ];then
- exec /usr/bin/pinentry-qt4 "$@"
+if [ -x /usr/bin/pinentry-qt5 ];then
+ exec /usr/bin/pinentry-qt5 "$@"
+fi
+
+if [ -x /usr/bin/pinentry-qt ];then
+ exec /usr/bin/pinentry-qt "$@"
fi
if [ -x /usr/bin/pinentry-gtk-2 ];then

Generated by cgit