Add new file
This commit is contained in:
parent
ba0d74a3aa
commit
417ddcb582
dnslookup
|
@ -0,0 +1,26 @@
|
|||
# Maintainer: Jorge Pizarro-Callejas (jorgicio) <jpizarrocallejas@gmail.com>
|
||||
pkgname=dnslookup
|
||||
pkgver=1.10.0
|
||||
pkgrel=1
|
||||
pkgdesc="Simple command line utility to make DNS lookups to the specified server"
|
||||
arch=('any')
|
||||
url="https://github.com/ameshkov/dnslookup"
|
||||
license=('GPL3')
|
||||
depends=()
|
||||
makedepends=('go')
|
||||
source=("$pkgname-$pkgver.tar.gz::https://github.com/ameshkov/$pkgname/archive/refs/tags/v$pkgver.tar.gz")
|
||||
conflicts=('dnslookup-git' 'dnslookup-bin')
|
||||
|
||||
sha1sums=('15fdb8fbc43e4b0fe1d08c7ffaf705d7c159a722')
|
||||
|
||||
build(){
|
||||
cd "${srcdir}/$pkgname-$pkgver"
|
||||
mkdir -p "${srcdir}/gopath"
|
||||
export GOPATH="${srcdir}/gopath"
|
||||
go install -x -v -buildmode=pie -ldflags "-s -w" -trimpath
|
||||
}
|
||||
|
||||
package(){
|
||||
mkdir -p $pkgdir/usr/bin
|
||||
install $srcdir/gopath/bin/$pkgname $pkgdir/usr/bin/$pkgname
|
||||
}
|
Loading…
Reference in New Issue