### this file is sourced not run
PKGVER=1.61debian4
PKGBUILD=1
PKGARCH=x86_64

# source: BLFS 6.1 updated to wvdial 1.61 with debian patches.
TARBALL=wvdial_1.61.orig.tar.gz
MD5SUM=124676b98f9bbd1c0366fdc0d2848bc9
SRC_URL=http://ftp.de.debian.org/debian/pool/main/w/wvdial/$TARBALL
BUNDLE=

SLACKREQ='libwvstreams pppd' # pppd is run-time dependency
SLACKDESC='wvdial: wvdial 1.61debian4 (Intelligent console dialer)  
wvdial:  
wvdial: The WvDial package contains a no-nonsense, quick and easy to use 
wvdial: alternative to chat and pppd scripts. It sacrifices some of the 
wvdial: flexibility of programs like chat in order to make dialup 
wvdial: configuration easier. With WvDial, modems are detected automatically 
wvdial: and only three additional parameters are required: the telephone 
wvdial: number, username, and password. WvDial knows enough to dial with most 
wvdial: modems and log in to most servers without any other help. In 
wvdial: particular, a chat script is not required to handle the most 
wvdial: common situations.
'

### default pkg_download
### prepare
pkg_prepare() {
	pkg_prepare_default &&
	cd tmp/wvdial* &&
	tar -xf $CHROOT_DIR/tmp/pkg/wvdial_1.61-4.1.debian.tar.gz &&
	for p in $(cat debian/patches/series); do
		patch -Np1 -i debian/patches/$p
	done
}

### default pkg_package
### build
pkg_build() {
	cd /tmp/wvdial*
	./configure &&
	make prefix=/usr &&
	make prefix=/usr install &&
	pkg_build_slackdesc
}


