void-packages/srcpkgs/mtr/template

50 lines
1.1 KiB
Bash

# Template file for 'mtr'
pkgname=mtr
version=0.86
revision=1
build_style="gnu-configure"
hostmakedepends="automake pkg-config"
makedepends="ncurses-devel gtk+-devel"
short_desc="Combines the functionality of traceroute and ping into one tool"
maintainer="Steven R <dev@styez.com>"
license="GPL"
homepage="http://www.bitwizard.nl/mtr/"
distfiles="https://github.com/traviscross/mtr/archive/v${version}.tar.gz"
checksum=7912f049f9506748913e2866068b7f95b11a4e0a855322120b456c46ac9eb763
nocross=yes
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
}
}