Magellan Linux

Contents of /trunk/extras/gnupg/gnupg-2.0.22-r2.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 20910 - (show annotations) (download)
Fri Feb 14 09:47:00 2014 UTC (10 years, 4 months ago) by niro
File size: 1557 byte(s)
-rebuild against libgcrypt-1.6 (soname change)
1 # $Id$
2
3 PNAME="gnupg"
4 PVER="2.0.22"
5 PBUILD="r2"
6
7 PCAT="app-crypt"
8
9 DESCRIPTION="GnuPG is a complete and free replacement for PGP."
10 HOMEPAGE="http://www.gnupg.org/"
11
12 DEPEND=">= virtual/glibc
13 >= virtual/mta
14 >= app-arch/bzip2-1.0.6
15 >= net-misc/curl-7.21
16 >= dev-libs/pth-2
17 >= app-crypt/libgpg-error-1.12
18 >= app-crypt/libgcrypt-1.6
19 >= app-crypt/libksba-1.3
20 >= app-crypt/libassuan-2
21 >= app-crypt/pinentry-0.8"
22
23 SDEPEND=">= sys-dev/gettext-0.18
24 >= sys-apps/texinfo-5"
25
26 SRCFILE="${PNAME}-${PVER}.tar.bz2"
27 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
28
29 sminclude mbuild mtools
30 msetfeature "!check"
31
32 SRC_URI=(
33 #ftp://ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE}
34 ftp://ftp.franken.de/pub/crypt/mirror/ftp.gnupg.org/gcrypt/${PNAME}/${SRCFILE}
35 mirror://${PNAME}/${SRCFILE}
36 )
37
38 UP2DATE="updatecmd http://www.gnupg.org/download/index.en.html | grep ${PNAME}-2 |lasttarball"
39
40 src_compile()
41 {
42 cd ${SRCDIR}
43
44 mconfigure \
45 --libexecdir=/usr/$(mlibdir)/${PNAME} \
46 --enable-nls \
47 --enable-symcryptrun \
48 --enable-gpg \
49 --enable-gpgsm \
50 --enable-agent \
51 --enable-bzip2 \
52 --enable-scdaemon \
53 --disable-ldap \
54 --disable-capabilities \
55 || die
56
57 mmake || die
58 }
59
60 src_install()
61 {
62 cd ${SRCDIR}
63 mmake DESTDIR=${BINDIR} install || die
64
65 # fix missing symlinks and man-pages
66 mlink gpg2 /usr/bin/gpg || die
67 mlink gpgv2 /usr/bin/gpgv || die
68 echo ".so man1/gpg2.1" > ${BINDIR}/usr/share/man/man1/gpg.1 || die
69 echo ".so man1/gpgv2.1" > ${BINDIR}/usr/share/man/man1/gpgv.1 || die
70
71 minstalldocs ABOUT-NLS AUTHORS ChangeLog COPYING NEWS README* TODO VERSION || die
72 }