From 417ddcb582da8ce0cd8038af6de37a9dec3c1a0a Mon Sep 17 00:00:00 2001 From: dataprolet Date: Wed, 31 Jan 2024 08:44:29 +0000 Subject: [PATCH] Add new file --- dnslookup/PKGBUILD | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 dnslookup/PKGBUILD diff --git a/dnslookup/PKGBUILD b/dnslookup/PKGBUILD new file mode 100644 index 0000000..9ce1a77 --- /dev/null +++ b/dnslookup/PKGBUILD @@ -0,0 +1,26 @@ +# Maintainer: Jorge Pizarro-Callejas (jorgicio) +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 +}