void-packages/srcpkgs/mtr/template

50 lines
1.1 KiB
Text
Raw Normal View History

2013-07-08 10:58:56 +00:00
# Template file for 'mtr'
pkgname=mtr
version=0.85
revision=3
2013-07-08 10:58:56 +00:00
distfiles="https://github.com/traviscross/mtr/archive/v${version}.tar.gz"
checksum="4c3c02cc8290798a067d514c9b243fdc90a75e58ca1a35da8e93a163f11c1884"
2014-02-22 22:46:21 +00:00
build_style="gnu-configure"
2013-07-11 08:41:02 +00:00
hostmakedepends="automake pkg-config"
makedepends="ncurses-devel gtk+-devel"
2014-02-22 22:46:21 +00:00
maintainer="Steven R <dev@styez.com>"
2013-07-08 10:58:56 +00:00
homepage="http://www.bitwizard.nl/mtr/"
license="GPL"
short_desc="Combines the functionality of traceroute and ping into one tool"
2014-08-23 20:08:13 +00:00
nocross=yes
2013-07-08 10:58:56 +00:00
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
}
2013-07-08 10:58:56 +00:00
}