summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 186a0e67291ae1fd83421d02f9fda8ff3614193e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Maintainer: Narthorn <narthorn@gmail.com>

_pkgname=mtr
pkgname=$_pkgname-git
pkgver=v0.92.r2.g4924a3f
pkgrel=1
arch=('any')
pkgdesc='Combines the functionality of traceroute and ping into one tool (CLI version, git)'
url='http://www.bitwizard.nl/mtr/'
license=('GPL')
makedepends=('git')
depends=('ncurses')
provides=($_pkgname)
conflicts=($_pkgname)
install=$_pkgname.install
source=('git://github.com/traviscross/mtr')
sha256sums=('SKIP')

pkgver() {
	cd $_pkgname
	git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd $_pkgname
	./bootstrap.sh
	./configure --prefix=/usr --without-gtk --sbindir=/usr/bin
	make
}

package() {
	cd $_pkgname
	make DESTDIR="$pkgdir" install
}