archlinux/repo/nali-go-bin/PKGBUILD

21 lines
640 B
Bash

# Maintainer: Xiufeng Guo <i@m.ac>
pkgname=nali-go-bin
pkgver=0.4.7
pkgrel=3
pkgdesc='An offline tool for querying IP geographic information and CDN provider.'
arch=('x86_64')
url="https://github.com/zu1k/nali"
license=('MIT')
provides=('nali')
conflicts=('nali')
source=("https://storage.m.ac/mirrors/github-release/zu1k/nali/v$pkgver/nali-linux-amd64-v$pkgver.gz")
sha256sums=('2eceb2848ef8341a6e872bb78be878ecbe306bf5f990af5896415609ba8812df')
package() {
# Move package contents to /usr/bin/nali
cd "${srcdir}"
chmod +x "nali-linux-amd64-v$pkgver"
install -Dm755 "nali-linux-amd64-v$pkgver" "${pkgdir}/usr/bin/nali"
}