aboutsummaryrefslogtreecommitdiffstats
path: root/testing/s-nail/APKBUILD
blob: 22370a71b6bbc6f984c94f6059493a679679b66e (plain)
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
43
44
45
46
47
48
49
50
# Contributor: Steffen Nurpmeso <steffen@sdaoden.eu>
# Contributor: Ivan Tham <pickfire@riseup.net>
# Maintainer: Ivan Tham <pickfire@riseup.net>
pkgname=s-nail
pkgver=14.9.5
pkgrel=1
pkgdesc="SysV/BSD/POSIX mail(x) utility to send and receive Internet mail"
url="https://www.sdaoden.eu/code.html#s-mailx"
arch="all"
license="BSD"
makedepends="libressl-dev libidn-dev ncurses-dev krb5-dev"
options="suid"
replaces="mailx"
subpackages="$pkgname-doc"
source="https://ftp.sdaoden.eu/s-nail-$pkgver.tar.xz"
builddir="$srcdir/"$pkgname-$pkgver

# LD_LIBRARY_PATH is included via -rpath, so use system defaults only.
# And ensure no other paths sneak in.
PATH=/sbin:/usr/sbin:/bin:/usr/bin
C_INCLUDE_PATH=/usr/include
LD_LIBRARY_PATH=/lib:/usr/lib
LIBRARY_PATH=$LD_LIBRARY_PATH
LD_RUN_PATH=$LD_LIBRARY_PATH
export PATH C_INCLUDE_PATH LD_LIBRARY_PATH

build() {
	cd "$builddir"
	make \
		VAL_SID= VAL_MAILX=mail \
		VAL_PREFIX=/usr \
		VAL_SYSCONFDIR=/etc \
		OPT_AUTOCC=no \
		config &&
	make build # XXX unite with config in v14.9.6
}

check() {
	cd "$builddir"
	make test
}

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

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

sha512sums="96b81c9a9d993f094f5a4f7a726d4b37e9640262cd68120403d92591044576651f14560760504d5ebfa81954f6c97e33f976c0a486be4bd6e04516bdbc80e9a5  s-nail-14.9.5.tar.xz"