summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5c4307fc998046f4cf4fc4917a2993a6e6d4e008 (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
# Maintainer: w0rty <mawo97 at gmail.com>

pkgname=asn-git
_reponame=asn
pkgver=r73.d280c0a
pkgrel=1
pkgdesc='ASN/IPv4/IPv6/Prefix/ASPath lookup tool'
arch=('any')
url="https://github.com/nitefood/asn"
license=('MIT')
depends=('bash' 'mtr' 'whois' 'bind-tools' 'ipcalc' 'grepcidr' 'jq' 'curl' 'aha' 'nmap')
makedepends=('git')
conflicts=('asn')
source=("git+${url}")
sha256sums=('SKIP')

pkgver() {
  cd "$_reponame"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd $_reponame
  install -Dm755 $_reponame "$pkgdir"/usr/bin/$_reponame
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}