diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-05-22 05:54:33 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-05-22 05:54:33 -0300 |
commit | 4774a572775b8c44d86bd8696d17d2205a473ac5 (patch) | |
tree | 4b17743b5e17e171eda55359ed5737da589b6ed9 /pcr/mailcrypt | |
parent | 3cc4685abd608cb86ac3beca4501a77e00c6d5be (diff) | |
parent | 1a4554480341083f8a1240431c12ebe267843ecd (diff) |
Merge branch 'master' of ssh://projects.parabola.nu/~git/abslibre
Diffstat (limited to 'pcr/mailcrypt')
-rw-r--r-- | pcr/mailcrypt/PKGBUILD | 34 | ||||
-rw-r--r-- | pcr/mailcrypt/mailcrypt.install | 20 |
2 files changed, 54 insertions, 0 deletions
diff --git a/pcr/mailcrypt/PKGBUILD b/pcr/mailcrypt/PKGBUILD new file mode 100644 index 000000000..027bfa124 --- /dev/null +++ b/pcr/mailcrypt/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer (Arch): Stefan Husmann <stefan-husmann@t-online.de> +# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe> +pkgname=mailcrypt +pkgver=3.5.9 +pkgrel=5 +pkgdesc="Emacs interface to PGP and GnuPG" +arch=('any') +url="http://mailcrypt.sourceforge.net/" +license=('GPL') +depends=('emacs') +makedepends=('texlive-plainextra') +source=(http://downloads.sourceforge.net/sourceforge/mailcrypt/mailcrypt-$pkgver.tar.gz) +md5sums=('18c0dea5dde0fc73168f4815df0d9db0') +install=$pkgname.install + +build() { + cd "$srcdir/$pkgname-$pkgver" + autoreconf + ./configure --prefix=/usr --infodir=/usr/share/info + make all info + texi2pdf $pkgname.texi +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + install -d "$pkgdir"/usr/share/info + make lispdir="$pkgdir"/usr/share/emacs/site-lisp \ + infodir="$pkgdir"/usr/share/info install + for _i in $pkgname.pdf ANNOUNCE COPYING ChangeLog ChangeLog.1 \ + INSTALL LCD-entry + do + install -Dm644 ${_i} $pkgdir/usr/share/doc/$pkgname/${_i} + done +} diff --git a/pcr/mailcrypt/mailcrypt.install b/pcr/mailcrypt/mailcrypt.install new file mode 100644 index 000000000..f3da9efcb --- /dev/null +++ b/pcr/mailcrypt/mailcrypt.install @@ -0,0 +1,20 @@ +infodir=/usr/share/info +filelist=(mailcrypt.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} |