aboutsummaryrefslogtreecommitdiffstats
path: root/community/tcptraceroute/APKBUILD
blob: 7d445d9e02794f384b2038e78c53a7a89b07faf5 (plain) (blame)
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
# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=tcptraceroute
pkgver=1.5b7
_ver=${pkgver/b/beta}
pkgrel=2
pkgdesc="Display route path using TCP probes"
url="https://github.com/mct/tcptraceroute"
arch="all"
license="GPL-2.0-only"
makedepends="libpcap-dev libnet-dev"
subpackages="$pkgname-doc"
source="https://github.com/mct/tcptraceroute/archive/tcptraceroute-1.5beta7.tar.gz"
builddir="$srcdir"/$pkgname-$pkgname-$_ver

prepare() {
	default_prepare
	update_config_guess
	update_config_sub
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info
	make
}

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

sha512sums="ad5588e62a56f1b5fa851b68280a88e66a900777fe4fd67587262245cd9da17b536b7dc972abe540fc124a93ac76abcabbc55bc32f9f8ee872d5df57b08f7222  tcptraceroute-1.5beta7.tar.gz"