45 lines
1.2 KiB
Bash
45 lines
1.2 KiB
Bash
# Template file for 's-nail'
|
|
pkgname=s-nail
|
|
version=14.9.22
|
|
revision=2
|
|
build_helper="qemu"
|
|
hostmakedepends="perl"
|
|
makedepends="libidn2-devel openssl-devel ncurses-devel"
|
|
conf_files="/etc/s-nail.rc"
|
|
short_desc="Mail processing system with a command syntax reminiscent of ed"
|
|
maintainer="Leah Neukirchen <leah@vuxu.org>"
|
|
license="BSD-4-Clause, BSD-3-Clause, BSD-2-Clause, ISC"
|
|
homepage="https://git.sdaoden.eu/cgit/s-nail.git"
|
|
distfiles="https://www.sdaoden.eu/downloads/s-nail-${version}.tar.xz"
|
|
checksum=e5dfb7d5bcc5d2d1126f2e826569ee0f149aac3f2a8a6b7c23985ffc3a1def0b
|
|
|
|
provides="mail-${version}_${revision}"
|
|
|
|
alternatives="
|
|
mail:mail.rc:/etc/s-nail.rc
|
|
mail:mail:/usr/bin/s-nail
|
|
mail:mail.1:/usr/share/man/man1/s-nail.1
|
|
"
|
|
|
|
do_build() {
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
cross=no
|
|
else
|
|
cross=yes
|
|
sed -i "s/|| \${tmp}/|| qemu-${XBPS_TARGET_QEMU_MACHINE}-static \${tmp}/" mk/make-config.sh
|
|
fi
|
|
make config \
|
|
VAL_PREFIX=/usr \
|
|
VAL_SYSCONFDIR=/etc \
|
|
VAL_MAIL=/var/spool/mail \
|
|
VAL_MTA=/usr/bin/sendmail \
|
|
VAL_PAGER=less \
|
|
OPT_AUTOCC=no \
|
|
OPT_CROSS_BUILD=$cross
|
|
make ${makejobs} build
|
|
}
|
|
|
|
do_install() {
|
|
make DESTDIR=$DESTDIR packager-install
|
|
vlicense COPYING
|
|
}
|