### this file is sourced not run
PKGVER=2.2.7 
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 7.5 updated to 2.2.7
TARBALL=gnupg-$PKGVER.tar.bz2
MD5SUM=fc13424af7747a5dd6edb6086ec0cb2f
SRC_URL=https://www.gnupg.org/ftp/gcrypt/gnupg/$TARBALL
BUNDLE=

SLACKREQ='libassuan libgcrypt libksba libgpg-error libusb-compat curl libnpth'
SLACKDESC="gnupg2: gnupg2 $PKGVER (GNU Privacy Guard version 2)  
gnupg2:  
gnupg2: GnuPG is the GNU project's complete and free implementation of the 
gnupg2: OpenPGP standard as defined by RFC4880. GnuPG allows to encrypt and 
gnupg2: sign your data and communication, features a versatile key management 
gnupg2: system as well as access modules for all kinds of public key 
gnupg2: directories. GnuPG, also known as GPG, is a command line tool with 
gnupg2: features for easy integration with other applications. A wealth of 
gnupg2: frontend applications and libraries are available. This is version 2 
gnupg2: of GnuPG, it supports S/MIME. It can be installed together with   
gnupg2: gnupg1.
"
SLACKSUG='pinentry-curses pinentry-gui pinentry-xlib'

### default pkg_download
### default pkg_prepare
### default pkg_package
### build
pkg_build() {
	CONFFLAGS="$CONFFLAGS \
    --docdir=/usr/share/doc/gnupg-$PKGVER --enable-gpgtar --enable-gpg-is-gpg2" &&
    
	pkg_build_autoconf && 
	makeinfo --html --no-split -o doc/gnupg_nochunks.html doc/gnupg.texi &&
	makeinfo --plaintext       -o doc/gnupg.txt           doc/gnupg.texi &&
	make $MAKEINSTALLFLAGS install &&
	install -v -m755 -d /usr/share/doc/gnupg-$PKGVER/html &&
	install -v -m644    doc/gnupg_nochunks.html \
                    /usr/share/doc/gnupg-$PKGVER/gnupg.html &&
	install -v -m644    doc/*.texi doc/gnupg.txt \
                    /usr/share/doc/gnupg-$PKGVER &&
	pkg_build_slackdesc
}


