#!/bin/bash # # Maintainer: Deposite Pirate source /usr/src/ports/Build/build.sh NAME=gnupg VERSION=2.0.19 BUILD=2 DEPENDS=('libgcrypt >= 1.5.0-1' 'libassuan >= 2.0.3-1' 'libksba >= 1.3.0-1' 'pth >= 2.0.7-1' 'capabilities >= 20130117-1') # Description cat > ${PKG}/install/slack-desc <> ${PKG}/install/doinst.sh < /dev/null fi done } # Install texinfo files install_info gnupg EOF REPOSITORY=ftp://ftp.gnupg.org/gcrypt/gnupg # Sources SRCNAME[0]=${NAME} SRCVERS[0]=${VERSION} SRCPACK[0]=${REPOSITORY}/${SRCNAME[0]}-${SRCVERS[0]}.tar.bz2 SRCCOPY[0]="GPL3 LGPL3" build0() { CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \ ./configure \ --build="${ARCH}-slackware-linux" \ --disable-dependency-tracking \ --disable-rpath \ --prefix="${SYS_DIR[usr]}" \ --mandir="${SYS_DIR[man]}" \ --infodir="${SYS_DIR[info]}" \ --sysconfdir="${SYS_DIR[etc]}" \ --libdir="${SYS_DIR[lib]}" \ --libexecdir="${SYS_DIR[lib]}/exec" \ --localstatedir="${SYS_DIR[var]}" \ --docdir="${SYS_DIR[doc]}/${SRCNAME[0]}-${SRCVERS[0]}" make ${JOBS} make install DESTDIR="${PKG}" doc AUTHORS THANKS changelog NEWS ( cd ${DOC} mv examples/gpgconf.conf . rm -rf DETAILS HACKING KEYSERVER OpenPGP README TRANSLATE examples ) install.dir ${PKG}${SYS_DIR[etc]}/gnupg ( cd ${PKG}${SYS_DIR[bin]} ln -sf gpg2 gpg ln -sf gpgv2 gpgv ) echo ".so man1/gpg2.1" > ${PKG}${SYS_DIR[man]}/man1/gpg.1 echo ".so man1/gpgv2.1" > ${PKG}${SYS_DIR[man]}/man1/gpgv.1 rm -f ${PKG}${SYS_DIR[share]}/gnupg/com-certs.pem }