# Maintainer: Julian Xhokaxhiu pkgname=asroute pkgver=0.1.0 pkgrel=2 pkgdesc="Interpret traceroute output to show names of ASN traversed" arch=('i686' 'x86_64' 'armv5h' 'armv6h' 'armv7h' 'aarch64') url="https://github.com/stevenpack/asroute" license=('MIT') makedepends=( 'git' 'cargo' ) source=( "git+https://github.com/stevenpack/asroute" ) sha256sums=( 'SKIP' ) prepare() { cd "${srcdir}/asroute" git checkout v${pkgver} git submodule update --init --recursive } package() { cd "${srcdir}/asroute" cargo build --release --verbose install -Dm755 "target/release/asroute" "$pkgdir/usr/bin/asroute" git checkout master install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/asroute/LICENSE" }