diff options
Diffstat (limited to 'core/s-nail')
-rw-r--r-- | core/s-nail/PKGBUILD | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/core/s-nail/PKGBUILD b/core/s-nail/PKGBUILD index 7a685f014..f626cd410 100644 --- a/core/s-nail/PKGBUILD +++ b/core/s-nail/PKGBUILD @@ -1,11 +1,11 @@ -# $Id: PKGBUILD 196202 2013-10-08 07:40:42Z bisson $ +# $Id: PKGBUILD 197187 2013-10-23 17:10:51Z bisson $ # Maintainer: Gaetan Bisson <bisson@archlinux.org> # Contributor: Stéphane Gaudreault <stephane@archlinux.org> # Contributor: Sergej Pupykin <pupykin.s@arch@gmail.com> # Contributor: Andreas Wagner <Andreas.Wagner@em.uni-frankfurt.de> pkgname=s-nail -pkgver=14.4.4 +pkgver=14.4.5 pkgrel=1 pkgdesc='Mail processing system with a command syntax reminiscent of ed' url='http://sourceforge.net/projects/s-nail/' @@ -14,7 +14,7 @@ arch=('i686' 'x86_64' 'mips64el') depends=('openssl') optdepends=('smtp-forwarder: for sending mail') source=("http://downloads.sourceforge.net/project/${pkgname}/${pkgname}-${pkgver//./_}.tar.gz") -sha1sums=('6aaa2ca4c269a073cdfd778de0f05d8eb2303737') +sha1sums=('cc972ddacdf9593739289eb0589ad0939255dfd7') groups=('base') backup=('etc/mail.rc') @@ -22,6 +22,11 @@ replaces=('mailx' 'mailx-heirloom' 'heirloom-mailx') provides=('mailx' 'mailx-heirloom' 'heirloom-mailx') conflicts=('mailx' 'mailx-heirloom' 'heirloom-mailx') +prepare() { + cd "${srcdir}/${pkgname}-${pkgver}" + sed 's/s-nail/mail/g' -i cc-test.sh +} + build() { cd "${srcdir}/${pkgname}-${pkgver}" make \ @@ -30,20 +35,22 @@ build() { MANDIR=/usr/share/man \ MAILSPOOL=/var/spool/mail \ SID= NAIL=mail \ + config + make \ CFLAGS="${CFLAGS} ${CPPFLAGS}" \ LDFLAGS="${LDFLAGS}" \ - DESTDIR="${pkgdir}" \ - all + build } + check() { cd "${srcdir}/${pkgname}-${pkgver}" - #./cc-test.sh + make test } package() { cd "${srcdir}/${pkgname}-${pkgver}" - make -f mk.mk install + 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" |