44 lines
1.1 KiB
Bash
44 lines
1.1 KiB
Bash
# Template file for 'mailx'
|
|
pkgname=mailx
|
|
version=12.5
|
|
revision=26
|
|
makedepends="openssl-devel mit-krb5-devel"
|
|
conf_files="/etc/mailx.rc"
|
|
short_desc="Feature-rich BSD mail(1)"
|
|
maintainer="Orphaned <orphan@voidlinux.org>"
|
|
license="BSD-4-Clause"
|
|
homepage="http://heirloom.sourceforge.net/mailx.html"
|
|
distfiles="https://pkgs.fedoraproject.org/repo/pkgs/mailx/mailx-${version}.tar.xz/836bf1da322d2d1f78b7056c2b3b2304/${pkgname}-${version}.tar.xz"
|
|
checksum=1b8136fb2466adeaf71a5e3c65db9fa1a967f1f6469ff689c2cf06e21f638823
|
|
provides="mail-${version}_${revision}"
|
|
|
|
alternatives="
|
|
mail:mail.rc:/etc/mailx.rc
|
|
mail:mail:/usr/bin/mailx
|
|
mail:mail.1:/usr/share/man/man1/mailx.1
|
|
"
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
}
|
|
|
|
do_build() {
|
|
echo PREFIX=/usr \
|
|
BINDIR=/usr/bin \
|
|
MANDIR=/usr/share/man \
|
|
SYSCONFDIR=/etc \
|
|
MAILRC=/etc/mailx.rc \
|
|
MAILSPOOL=/var/spool/mail \
|
|
UCBINSTALL=install \
|
|
STRIP=$STRIP \
|
|
SENDMAIL=/usr/bin/sendmail \
|
|
> makeflags
|
|
|
|
make $(cat makeflags) IPv6=-DHAVE_IPv6_FUNCS \
|
|
CFLAGS="${CFLAGS} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64"
|
|
}
|
|
|
|
do_install() {
|
|
make DESTDIR=${DESTDIR} $(cat makeflags) install
|
|
}
|