PKGBUILD 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Maintainer: Gaetan Bisson <bisson@archlinux.org>
  2. # Contributor: Stéphane Gaudreault <stephane@archlinux.org>
  3. # Contributor: Sergej Pupykin <pupykin.s@arch@gmail.com>
  4. # Contributor: Andreas Wagner <Andreas.Wagner@em.uni-frankfurt.de>
  5. pkgname=s-nail
  6. pkgver=14.9.11
  7. pkgrel=1
  8. pkgdesc='Mail processing system with a command syntax reminiscent of ed'
  9. url='http://www.sdaoden.eu/code.html#s-nail'
  10. license=('custom:BSD')
  11. arch=('x86_64' 'ppc64le')
  12. depends=('openssl' 'krb5' 'libidn2')
  13. optdepends=('smtp-forwarder: for sending mail')
  14. validpgpkeys=('EE19E1C1F2F7054F8D3954D8308964B51883A0DD')
  15. source=("https://www.sdaoden.eu/downloads/${pkgname}-${pkgver}.tar.xz"{,.asc})
  16. sha256sums=('258d818449da889c5fc4976215698a817c0a3818fb77dd565fa9fe6afed0023e'
  17. 'SKIP')
  18. groups=('base')
  19. backup=('etc/mail.rc')
  20. replaces=('mailx' 'mailx-heirloom' 'heirloom-mailx')
  21. provides=('mailx' 'mailx-heirloom' 'heirloom-mailx')
  22. conflicts=('mailx' 'mailx-heirloom' 'heirloom-mailx')
  23. build() {
  24. cd "${srcdir}/${pkgname}-${pkgver}"
  25. CFLAGS+=" $CPPFLAGS"
  26. make \
  27. VAL_PREFIX=/usr \
  28. VAL_SYSCONFDIR=/etc \
  29. VAL_LIBEXECDIR=/usr/lib \
  30. VAL_MAIL=/var/spool/mail \
  31. VAL_SID= VAL_MAILX=mail \
  32. OPT_AUTOCC=0 \
  33. config
  34. make MAKEJOBS=--jobs build
  35. }
  36. check() {
  37. cd "${srcdir}/${pkgname}-${pkgver}"
  38. make test < /dev/null
  39. }
  40. package() {
  41. cd "${srcdir}/${pkgname}-${pkgver}"
  42. make DESTDIR="${pkgdir}" install
  43. ln -sf mail "${pkgdir}"/usr/bin/mailx
  44. ln -sf mail.1.gz "${pkgdir}"/usr/share/man/man1/mailx.1.gz
  45. install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
  46. }