# Template file for 'mtr' pkgname=mtr version=0.85 revision=3 distfiles="https://github.com/traviscross/mtr/archive/v${version}.tar.gz" checksum="4c3c02cc8290798a067d514c9b243fdc90a75e58ca1a35da8e93a163f11c1884" build_style="gnu-configure" hostmakedepends="automake pkg-config" makedepends="ncurses-devel gtk+-devel" maintainer="Steven R " homepage="http://www.bitwizard.nl/mtr/" license="GPL" short_desc="Combines the functionality of traceroute and ping into one tool" pre_configure() { ./bootstrap.sh } do_configure() { mkdir $wrksrc/build_nox $wrksrc/build_x11 cd $wrksrc/build_nox $wrksrc/configure ${configure_args} --without-gtk cd $wrksrc/build_x11 $wrksrc/configure ${configure_args} } do_build() { for p in $wrksrc/build_nox $wrksrc/build_x11; do cd $p make ${makejobs} done } do_install() { cd $wrksrc/build_nox make DESTDIR=$DESTDIR install } mtr-x11_package() { provides="mtr-${version}_${revision}" replaces="mtr>0" short_desc+=" - X11 version" pkg_install() { cd $wrksrc/build_x11 make DESTDIR=$PKGDESTDIR install } }