summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorWorty2020-08-07 18:25:52 +0200
committerWorty2020-08-07 18:33:47 +0200
commit07519ec75c3b5c47787451b8a4e38da6636a52cd (patch)
treeeac74c372e8ddb51ac9533a81117f0a17d63d3d4
downloadaur-07519ec75c3b5c47787451b8a4e38da6636a52cd.tar.gz
init
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD25
2 files changed, 40 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..9de3ff923f41
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = asn-git
+ pkgdesc = ASN/IPv4/IPv6/Prefix/ASPath lookup tool
+ pkgver = r17.0705fd2
+ pkgrel = 1
+ url = https://github.com/nitefood/asn
+ arch = any
+ license = MIT
+ depends = bash
+ depends = mtr
+ conflicts = asn
+ source = git+https://github.com/nitefood/asn
+ sha256sums = SKIP
+
+pkgname = asn-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..feecde3b7f8d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,25 @@
+# Maintainer: w0rty <mawo97 at gmail.com>
+
+pkgname=asn-git
+_reponame=asn
+pkgver=r17.0705fd2
+pkgrel=1
+pkgdesc='ASN/IPv4/IPv6/Prefix/ASPath lookup tool'
+arch=('any')
+url="https://github.com/nitefood/asn"
+license=('MIT')
+depends=('bash' 'mtr')
+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"
+}