### this file is sourced not run
PKGVER=8.1.2deb4
PKGBUILD=1
PKGARCH=x86_64

# source: james
TARBALL=bsd-mailx_8.1.2-0.20160123cvs.orig.tar.bz2
MD5SUM=09001e88ebcfca8dc11d658f6827b200
SRC_URL=http://deb.debian.org/debian/pool/main/b/bsd-mailx/$TARBALL
BUNDLE=

SLACKREQ='libbsd' # liblockfile built-time only
SLACKDESC="bsd-mailx: bsd-mailx $PKGVER (Simple mail user agent)
bsd-mailx: 
bsd-mailx: bsd-mailx is the traditional simple command-line-mode mail user 
bsd-mailx: agent. Even if you don't use it, it may be required by other 
bsd-mailx: programs. The bsd-mailx provided here is very simple. It only 
bsd-mailx: supports local mailbox, and does not support MIME, SMTP, POP3/IMAP 
bsd-mailx: or maildir format. If you need those features, please install 
bsd-mailx: mailutils or s-nail package instead.
bsd-mailx: 
bsd-mailx: https://packages.debian.org/stretch/bsd-mailx
bsd-mailx: 
"

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/*mailx* &&
	tar -xf ../pkg/bsd-mailx_8.1.2-0.20160123cvs-4.debian.tar.xz &&
	for p in $(cat debian/patches/series); do
		patch -Np1 -i debian/patches/$p
	done
}

### default pkg_package
### build
pkg_build() {
	mkdir -p /usr/share/bsd-mailx &&
	cd /tmp/*mailx* &&
	make && make install &&
	pkg_build_slackdesc
}
