diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 21 |
1 files changed, 10 insertions, 11 deletions
@@ -1,7 +1,7 @@ # Maintainer: "Amhairghin" Oscar Garcia Amor (https://ogarcia.me) pkgname=dnsmorph -pkgver=1.2.6 +pkgver=1.2.8 pkgrel=1 pkgdesc='Domain name permutation engine written in Go' arch=('any') @@ -9,20 +9,19 @@ url='https://github.com/netevert/dnsmorph' license=('MIT') makedepends=('go') source=("https://github.com/netevert/${pkgname}/archive/v${pkgver}.tar.gz") -sha256sums=('36ef1e6e4208580475dd0a61c81d3d14e2806e60fa01376ad735b5f236665f6f') +sha256sums=('ea4836a097cf84d080439f85310a5872e4b545b0d430c5df90e3a2e46d110481') build() { - export GOPATH="${srcdir}" - mkdir -p "${srcdir}/src/github.com/netevert" - ln -fsT "${srcdir}/${pkgname}-${pkgver}" "${srcdir}/src/github.com/netevert/${pkgname}" - cd "${srcdir}/src/github.com/netevert/${pkgname}" - go get \ - -gcflags "all=-trimpath=${srcdir}/src" \ - -asmflags "all=-trimpath=${srcdir}/src" \ - -v ./... + cd "${pkgname}-${pkgver}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + _LDFLAGS="-X main.version=${pkgver} -extldflags ${LDFLAGS}" + go build -o dnsmorph -ldflags="${_LDFLAGS}" ./ } package() { # binary - install -Dm755 bin/dnsmorph "${pkgdir}/usr/bin/dnsmorph" + install -Dm755 "${pkgname}-${pkgver}"/dnsmorph "${pkgdir}/usr/bin/dnsmorph" } |