void-packages/srcpkgs/mtr/template

50 lines
1.1 KiB
Plaintext
Raw Normal View History

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