# Contributor: Steffen Nurpmeso # Contributor: Ivan Tham # Maintainer: pkgname=s-nail pkgver=14.9.13 pkgrel=2 pkgdesc="SysV mail/BSD Mail/POSIX mailx: send and receive Internet mail" url="https://www.sdaoden.eu/code.html#s-mailx" arch="all" license="BSD" makedepends="openssl-dev libidn-dev ncurses-dev" options="suid" replaces="mailx" subpackages="$pkgname-doc" source="https://ftp.sdaoden.eu/s-nail-$pkgver.tar.xz" builddir="$srcdir/"$pkgname-$pkgver build() { cd "$builddir" make \ VAL_SID= VAL_MAILX=mail \ VAL_PREFIX=/usr \ VAL_SYSCONFDIR=/etc \ \ OPT_GSSAPI=no \ VAL_IDNA=idn \ VAL_RANDOM="tls,libgetrandom,sysgetrandom,urandom,builtin" \ VAL_MAIL=/var/mail \ \ config make build } check() { cd "$builddir" make test } package() { cd "$builddir" make DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING } sha512sums="6467846fab5752c708886ba7a66cd2038effc0cf8d72e2feb670283cf1d5436c27037087eeaa201c074964476ff0c213cffe74169fb03089ebf964fcc766e6ea s-nail-14.9.13.tar.xz"