aboutsummaryrefslogtreecommitdiffstats
path: root/community/s-nail/APKBUILD
blob: a0ab46d17ac11e58e430f4c1edc672de691a9ff8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Contributor: Steffen Nurpmeso <steffen@sdaoden.eu>
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer:
pkgname=s-nail
pkgver=14.9.16
pkgrel=0
pkgdesc="SysV mail/BSD Mail/POSIX mailx: send and receive Internet mail"
options="!check suid" # 415 tests: 414 ok, 1 failure(s).  0 test(s) skipped
url="https://www.sdaoden.eu/code.html#s-mailx"
arch="all"
license="BSD-3-Clause"
makedepends="openssl-dev libidn-dev ncurses-dev"
replaces="mailx"
subpackages="$pkgname-doc"
source="https://ftp.sdaoden.eu/s-nail-$pkgver.tar.xz"

build() {
	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() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install

	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}

sha512sums="147c9dbd6abf9a17778eafa36f1cd85b0f769e6acbae06d67d0aa8b9c8b940f78e115d13d277d4269ea44c9ad6dbe75228da9878d9eebb233cb354f3d548089f  s-nail-14.9.16.tar.xz"