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

pkgname=asn-git
_reponame=asn
pkgver=r21.6d98132
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')
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"
}