Date: Monday, December 30, 2019 @ 07:10:49
  Author: bisson
Revision: 372376

archrelease: copy trunk to testing-x86_64

Added:
  s-nail/repos/testing-x86_64/
  s-nail/repos/testing-x86_64/PKGBUILD
    (from rev 372375, s-nail/trunk/PKGBUILD)

----------+
 PKGBUILD |   56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 56 insertions(+)

Copied: s-nail/repos/testing-x86_64/PKGBUILD (from rev 372375, 
s-nail/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD                             (rev 0)
+++ testing-x86_64/PKGBUILD     2019-12-30 07:10:49 UTC (rev 372376)
@@ -0,0 +1,56 @@
+# Maintainer: Gaetan Bisson <[email protected]>
+# Contributor: Stéphane Gaudreault <[email protected]>
+# Contributor: Sergej Pupykin <pupykin.s@[email protected]>
+# Contributor: Andreas Wagner <[email protected]>
+
+pkgname=s-nail
+pkgver=14.9.16
+pkgrel=1
+pkgdesc='Environment for sending and receiving mail'
+url='https://www.sdaoden.eu/code.html#s-nail'
+license=('custom:BSD')
+arch=('x86_64')
+depends=('openssl' 'krb5' 'libidn2')
+optdepends=('smtp-forwarder: for sending mail')
+validpgpkeys=('EE19E1C1F2F7054F8D3954D8308964B51883A0DD')
+source=("https://www.sdaoden.eu/downloads/${pkgname}-${pkgver}.tar.xz"{,.asc})
+sha256sums=('d37edaa348d61b786f4c44362ad9e08c27dba81cf16289098331ab96aa93c44f'
+            'SKIP')
+
+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}"
+       export CFLAGS+=" $CPPFLAGS"
+
+       # The -j value ends up stored in the binary;
+       # to make the build reproducible, hardcode it.
+       export MAKEFLAGS='-j4'
+
+       make \
+               VAL_PREFIX=/usr \
+               VAL_SYSCONFDIR=/etc \
+               VAL_LIBEXECDIR=/usr/lib \
+               VAL_MAIL=/var/spool/mail \
+               VAL_SID= VAL_MAILX=mail \
+               OPT_AUTOCC=0 \
+               config
+
+       make --jobs build
+}
+
+check() {
+       cd "${srcdir}/${pkgname}-${pkgver}"
+       make test
+}
+
+package() {
+       cd "${srcdir}/${pkgname}-${pkgver}"
+       make DESTDIR="${pkgdir}" 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"
+}

Reply via email to