summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Wagie2020-06-01 12:37:02 -0600
committerMark Wagie2020-06-01 12:37:02 -0600
commit89862603b9b3f65e297ca3ef19e9c62bc80f1270 (patch)
tree736109dbe11459a61aa4093fe93ec6531d93e13b
parent9ee1e3cbce70b5fc2d002351556089cc6308e17c (diff)
downloadaur-89862603b9b3f65e297ca3ef19e9c62bc80f1270.tar.gz
update build flags according to guidelines
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD13
2 files changed, 8 insertions, 9 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 780622dd502..6e2e27927cd 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,11 +1,11 @@
pkgbase = tldr++
pkgdesc = Community driven man pages improved with smart user interaction
pkgver = 0.6.1
- pkgrel = 5
+ pkgrel = 6
url = https://isacikgoz.me/tldr
arch = any
license = MIT
- makedepends = go-pie
+ makedepends = go
makedepends = dep
makedepends = git
provides = tldr
diff --git a/PKGBUILD b/PKGBUILD
index accf813e59e..f8d63f945ca 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,12 +2,12 @@
# Contributor: iboyperson <tjquillan at gmail dot com>
pkgname=tldr++
pkgver=0.6.1
-pkgrel=5
+pkgrel=6
pkgdesc="Community driven man pages improved with smart user interaction"
arch=('any')
url="https://isacikgoz.me/tldr"
license=('MIT')
-makedepends=('go-pie' 'dep' 'git')
+makedepends=('go' 'dep' 'git')
provides=("${pkgname%++}")
conflicts=("${pkgname%++}" 'nodejs-tldr' 'tldr-bash-git' 'tldr-cpp-client' 'tldr-python-client')
source=("$pkgname-$pkgver.tar.gz"::"https://github.com/isacikgoz/tldr/archive/v$pkgver.tar.gz")
@@ -19,8 +19,8 @@ prepare() {
export GOPATH="$srcdir"/gopath
cd "gopath/src/github.com/isacikgoz/${pkgname%++}"
- dep init
- dep ensure
+ dep init -v
+ dep ensure -v
}
build() {
@@ -28,9 +28,8 @@ build() {
cd "gopath/src/github.com/isacikgoz/${pkgname%++}"
go build \
- -gcflags "all=-trimpath=${PWD}" \
- -asmflags "all=-trimpath=${PWD}" \
- -ldflags "-extldflags ${LDFLAGS}" \
+ -buildmode=pie \
+ -ldflags "-extldflags \"${LDFLAGS}\"" \
-o $pkgname .
}