Magellan Linux

Annotation of /trunk/extras/pinentry/pinentry-0.8.1-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7507 - (hide annotations) (download)
Mon Mar 28 18:30:18 2011 UTC (13 years, 1 month ago) by niro
File size: 1455 byte(s)
auto added: ver bump to 0.8.1-r1
1 niro 7505 # $Id$
2    
3     PNAME="pinentry"
4     PVER="0.8.1"
5     PBUILD="r1"
6    
7     PCATEGORIE="app-crypt"
8     STATE="unstable"
9    
10     DESCRIPTION="A collection of simple PIN or passphrase entry dialogs which utilize the Assuan protocol."
11     HOMEPAGE="http://www.gnupg.org/"
12    
13     DEPEND=">= sys-libs/ncurses-5.7
14     >= sys-libs/libcap-2.17"
15    
16     SDEPEND=">= x11-libs/qt-3.3.8
17     >= x11-libs/qt4-4.6
18     >= x11-libs/gtk2+-2.18"
19    
20     SRCFILE="${PNAME}-${PVER}.tar.gz"
21     SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
22    
23 niro 7507 sminclude mtools qt4
24 niro 7505
25     SRC_URI=(
26     #ftp://ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE}
27     ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE}
28     mirror://${PNAME}/${SRCFILE}
29     )
30    
31     #UP2DATE="updatecmd ftp://ftp.gnupg.org/gcrypt/${PNAME}/ | lasttarball gz"
32     UP2DATE="updatecmd ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/${PNAME}/ | lasttarball gz"
33    
34 niro 7507 src_prepare()
35     {
36     munpack ${SRCFILE} || die
37     cd ${SRCDIR}
38    
39     local i
40     for i in qt4/*.moc
41     do
42     ${QTDIR}/bin/moc ${i/.moc/.h} > ${i} || die
43     done
44     }
45    
46 niro 7505 src_compile()
47     {
48     cd ${SRCDIR}
49    
50     mconfigure \
51     --libexecdir=/usr/$(mlibdir)/${PNAME} \
52     --enable-pinentry-gtk2 \
53     --enable-pinentry-qt \
54     --enable-pinentry-qt4 \
55     --enable-fallback-curses \
56     || die
57    
58     mmake || die
59     }
60    
61     src_install()
62     {
63     cd ${SRCDIR}
64     mmake DESTDIR=${BINDIR} install || die
65    
66     # default is the gkt2 backend
67     rm ${BINDIR}/usr/bin/pinentry || die
68     mlink pinentry-gtk-2 /usr/bin/pinentry || die
69    
70     minstalldocs ABOUT-NLS AUTHORS ChangeLog COPYING NEWS README* TODO VERSION || die
71     }