# Maintainer: Leonardo Arena <rnalrd@alpinelinux.org>
pkgname=tcptraceroute
pkgver=1.5_beta7
_ver=${pkgver//_/}
pkgrel=4
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-$_ver.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"
