aboutsummaryrefslogtreecommitdiffstats
path: root/testing/mtr/APKBUILD
blob: d2c155906ea95ddbe46c556024bd6e97deb11362 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Contributor: John Keith Hohm <john@hohm.net>
# Maintainer:
pkgname=mtr
pkgver=0.80
pkgrel=0
pkgdesc="Full screen ncurses traceroute tool"
url="http://www.bitwizard.nl/mtr/"
arch="all"
license="GPL"
depends="ncurses"
depends_dev="ncurses-dev"
makedepends="$depends_dev"
install=""
subpackages="$pkgname-doc"
source="ftp://ftp.bitwizard.nl/$pkgname/$pkgname-$pkgver.tar.gz
	mtr-res_mkquery.patch
	"

_builddir="src/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure --prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--without-gtk \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" install || return 1
}

md5sums="fa68528eaec1757f52bacf9fea8c68a9  mtr-0.80.tar.gz
f5982bdacddd8c1ea26d578b62bf810c  mtr-res_mkquery.patch"