updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / topal / PKGBUILD
blob66c122f984eabf95c706752755183f3f5fa35461
1 # -*- shell-script -*-
3 # Contributor: Adrian C. (anrxc) <anrxc..sysphere.org>
5 pkgname=topal
6 pkgver=74
7 pkgrel=1
8 pkgdesc="Topal is a glue program that links GnuPG and Alpine"
9 arch=("i686" "x86_64")
10 url="http://homepage.ntlworld.com/phil.brooke/topal"
11 license=("GPL3")
12 makedepends=("gcc-ada" "make" "lynx")
13 optdepends=("alpine: for which topal was mainly written for"
14             "gnupg: to encrypt, decrypt, sign and verify e-mail"
15             "metamail: to display and process MIME messages"
16             "mime-support: its run-mailcap tool as alternative to metamail"
17             "openssh: for remote and server mode of operation")
18 install="${pkgname}.install"
19 source=("${url}/rel-${pkgver}/${pkgname}-package-${pkgver}.tgz")
20 md5sums=("5d31e99664831f0dfaaee190596e7c8b")
23 build() {
24   cd "${srcdir}/${pkgname}-${pkgver}"
26 # Remove PDF build crap
27   sed -i 's/binary topal.pdf/binary/' Makefile
29 # Build Topal and MIME-tool
30   make distclean
31   make -j1
33 # Install Topal binary, manual page and documentation
34   install -D -m755 "${pkgname}" "${pkgdir}/usr/bin/${pkgname}"
35   install -D -m644 "${pkgname}.man" "${pkgdir}/usr/share/man/man1/${pkgname}.1"
36 # Replaced by some PDF crap which we will not build
37   #install -D -m644 README.txt "${pkgdir}/usr/share/doc/${pkgname}/README"
39 # Install Topal's version of MIME-tool and manual page
40   install -D -m755 MIME-tool/mime-tool "${pkgdir}/usr/bin/mime-tool"
41   install -D -m644 MIME-tool/mime-tool.man "${pkgdir}/usr/share/man/man1/mime-tool.1"