archrelease: copy trunk to extra-x86_64
[arch-packages.git] / s-nail / repos / core-x86_64 / PKGBUILD
blob3f2023f9b55fc9cd95fe11bdc4ed5f5bd7044f29
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>
6 pkgname=s-nail
7 pkgver=14.9.24
8 pkgrel=2
9 pkgdesc='Environment for sending and receiving mail'
10 url='https://www.sdaoden.eu/code.html#s-nail'
11 license=('custom:BSD')
12 arch=('x86_64')
13 depends=('openssl' 'krb5' 'libidn2')
14 optdepends=('smtp-forwarder: for sending mail')
15 validpgpkeys=('EE19E1C1F2F7054F8D3954D8308964B51883A0DD')
16 source=("https://www.sdaoden.eu/downloads/${pkgname}-${pkgver}.tar.xz"{,.asc})
17 sha512sums=('03f6a6f446391b6f91ed3c8875c3e7fdfac9d4e77ea1d52a7e98aa84cfd0edae137d5b9afba3bdc9a31ab67cee5237930b74b42ae3acb54aee4758553a4f1df2'
18             'SKIP')
20 backup=('etc/mail.rc')
21 replaces=('mailx' 'mailx-heirloom' 'heirloom-mailx')
22 provides=('mailx' 'mailx-heirloom' 'heirloom-mailx')
23 conflicts=('mailx' 'mailx-heirloom' 'heirloom-mailx')
25 build() {
26         cd "${srcdir}/${pkgname}-${pkgver}"
27         export CFLAGS+=" $CPPFLAGS"
28         make \
29                 VAL_PREFIX=/usr \
30                 VAL_SYSCONFDIR=/etc \
31                 VAL_LIBEXECDIR=/usr/lib \
32                 VAL_MAIL=/var/spool/mail \
33                 VAL_SID= VAL_MAILX=mail \
34                 OPT_AUTOCC=0 \
35                 config
37         make build
40 check() {
41         cd "${srcdir}/${pkgname}-${pkgver}"
42         make test
45 package() {
46         cd "${srcdir}/${pkgname}-${pkgver}"
47         make DESTDIR="${pkgdir}" install
48         ln -sf mail "${pkgdir}"/usr/bin/mailx
49         ln -sf mail.1.gz "${pkgdir}"/usr/share/man/man1/mailx.1.gz
50         install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"