# $Id: PKGBUILD 206340 2014-02-24 06:14:05Z bisson $ # Maintainer: Gaetan Bisson # Contributor: Stéphane Gaudreault # Contributor: Sergej Pupykin # Contributor: Andreas Wagner pkgname=s-nail pkgver=14.6 pkgrel=1 pkgdesc='Mail processing system with a command syntax reminiscent of ed' url='http://sdaoden.users.sourceforge.net/code.html#s-nail' license=('custom:BSD') arch=('i686' 'x86_64') depends=('openssl') optdepends=('smtp-forwarder: for sending mail') source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver//./_}.tar.xz") sha1sums=('57603cdc3dea79fda699cc172c33ccae75b1d794') groups=('base') backup=('etc/mail.rc') replaces=('mailx' 'mailx-heirloom' 'heirloom-mailx') provides=('mailx' 'mailx-heirloom' 'heirloom-mailx') conflicts=('mailx' 'mailx-heirloom' 'heirloom-mailx') build() { cd "${srcdir}/${pkgname}-${pkgver}" make \ PREFIX=/usr \ SYSCONFDIR=/etc \ MANDIR=/usr/share/man \ MAILSPOOL=/var/spool/mail \ SID= NAIL=mail \ config make build } check() { cd "${srcdir}/${pkgname}-${pkgver}" make test } package() { cd "${srcdir}/${pkgname}-${pkgver}" make DESTDIR="${pkgdir}" packager-install ln -sf mail "${pkgdir}"/usr/bin/mailx ln -sf mail.1.gz "${pkgdir}"/usr/share/man/man1/mailx.1.gz install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" }