wok-next view gnupg/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents 48b896290f12
children 82b613cfd1e0
line source
1 # SliTaz package receipt v2.
3 PACKAGE="gnupg"
4 VERSION="2.2.10"
5 CATEGORY="security"
6 SHORT_DESC="Free implementation of the OpenPGP"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.gnupg.org/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/postlfs/gnupg.html"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="https://www.gnupg.org/ftp/gcrypt/gnupg/$TARBALL"
14 # https://www.gnupg.org/download/integrity_check.html
15 TARBALL_SHA1="3e87504e2ca317718aa9b6299947ebf7e906b54e"
17 BUILD_DEPENDS="libgpg-error-dev libassuan-dev libgcrypt-dev libksba-dev \
18 npth-dev perl libusb-dev sqlite3-dev gettext-dev zlib-dev bzip2-dev \
19 readline-dev texinfo gnutls-dev openldap-dev"
21 compile_rules() {
22 ./configure \
23 --enable-symcryptrun \
24 --enable-maintainer-mode \
25 $CONFIGURE_ARGS &&
26 make &&
27 makeinfo --html --no-split -o doc/gnupg_nochunks.html doc/gnupg.texi &&
28 makeinfo --plaintext -o doc/gnupg.txt doc/gnupg.texi &&
29 make install || return 1
31 # FIXME.
32 # Looks like functions install-exec-hook() from g10/Makefile work in
33 # an unexpected manner. It required to spend too many time in debugging, so
34 # better I'll apply here "fast and dirty hack" that will make the same:
35 install -m755 g10/gpg $install/usr/bin/gpg2
36 install -m755 g10/gpgv $install/usr/bin/gpgv2
37 # The same "hack" for doc/Makefile
38 cook_pick_manpages doc/gpg.1 doc/gpgv.1
40 docdir="$install/usr/share/doc/gnupg-$VERSION"
41 install -v -m755 -d $docdir/html
42 install -v -m644 doc/gnupg_nochunks.html $docdir/html/gnupg.html
43 install -v -m644 doc/*.texi doc/gnupg.txt $docdir
45 ln -svf gpg2 $install/usr/bin/gpg
46 ln -svf gpgv2 $install/usr/bin/gpgv
47 }
49 genpkg_rules() {
50 copy @std
51 DEPENDS="bzlib libassuan libgcrypt libgnutls libgpg-error libksba libldap \
52 libsqlite3 libusb npth readline zlib pinentry"
53 }