aboutsummaryrefslogtreecommitdiffstats
path: root/community/tcptraceroute/APKBUILD
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2020-05-23 19:55:40 -0300
committerLeo <thinkabit.ukim@gmail.com>2020-05-23 19:57:14 -0300
commita37d23e3fafa2e5274bc6535afa10d5557f060aa (patch)
treead2c693231dc6eb7e0af3c1d80e61b0e94d156c1 /community/tcptraceroute/APKBUILD
parent5b9e625b7078d0e934b84e0f1d9009e3cad66d0a (diff)
downloadaports-a37d23e3fafa2e5274bc6535afa10d5557f060aa.tar.gz
aports-a37d23e3fafa2e5274bc6535afa10d5557f060aa.tar.bz2
aports-a37d23e3fafa2e5274bc6535afa10d5557f060aa.tar.xz
community/tcptraceroute: modernize
Diffstat (limited to 'community/tcptraceroute/APKBUILD')
-rw-r--r--community/tcptraceroute/APKBUILD24
1 files changed, 10 insertions, 14 deletions
diff --git a/community/tcptraceroute/APKBUILD b/community/tcptraceroute/APKBUILD
index 24f1081d8c..a46aceed14 100644
--- a/community/tcptraceroute/APKBUILD
+++ b/community/tcptraceroute/APKBUILD
@@ -2,37 +2,33 @@
pkgname=tcptraceroute
pkgver=1.5b7
_ver=${pkgver/b/beta}
-pkgrel=1
+pkgrel=2
pkgdesc="Display route path using TCP probes"
url="https://github.com/mct/tcptraceroute"
arch="all"
-license="GPL"
-depends=
-depends_dev=
-makedepends="$depends_dev libpcap-dev libnet-dev"
-install=
+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() {
- cd "$builddir"
- update_config_guess || return 1
+ default_prepare
+ update_config_guess
}
build() {
- cd "$builddir"
- ./configure --prefix=/usr \
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--infodir=/usr/share/info
- make || return 1
+ make
}
package() {
- cd "$builddir"
make DESTDIR="$pkgdir" install
}