summaryrefslogtreecommitdiff
path: root/libre-testing/s-nail
diff options
context:
space:
mode:
authorBruno Cichon <ebrasca@librepanther.com>2018-10-01 01:51:03 +0200
committerBruno Cichon <ebrasca@librepanther.com>2018-10-01 01:51:03 +0200
commit56f955aca6231693fe797de4793f77ed58ab116e (patch)
tree17daeabce98174f288bab94b47961dc9e9931e66 /libre-testing/s-nail
parent75ff40baa049bae7e9270d20ef86a88b733006ab (diff)
downloadabslibre-56f955aca6231693fe797de4793f77ed58ab116e.tar.gz
abslibre-56f955aca6231693fe797de4793f77ed58ab116e.tar.bz2
abslibre-56f955aca6231693fe797de4793f77ed58ab116e.zip
Add some base packages for ppc64le
Diffstat (limited to 'libre-testing/s-nail')
-rw-r--r--libre-testing/s-nail/PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/libre-testing/s-nail/PKGBUILD b/libre-testing/s-nail/PKGBUILD
new file mode 100644
index 000000000..a01dae398
--- /dev/null
+++ b/libre-testing/s-nail/PKGBUILD
@@ -0,0 +1,52 @@
+# 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.9.11
+pkgrel=1
+pkgdesc='Mail processing system with a command syntax reminiscent of ed'
+url='http://www.sdaoden.eu/code.html#s-nail'
+license=('custom:BSD')
+arch=('x86_64' 'ppc64le')
+depends=('openssl' 'krb5' 'libidn2')
+optdepends=('smtp-forwarder: for sending mail')
+validpgpkeys=('EE19E1C1F2F7054F8D3954D8308964B51883A0DD')
+source=("https://www.sdaoden.eu/downloads/${pkgname}-${pkgver}.tar.xz"{,.asc})
+sha256sums=('258d818449da889c5fc4976215698a817c0a3818fb77dd565fa9fe6afed0023e'
+ 'SKIP')
+
+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}"
+ CFLAGS+=" $CPPFLAGS"
+ 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 MAKEJOBS=--jobs build
+}
+
+check() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make test < /dev/null
+}
+
+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"
+}