diff options
author | Sibren Vasse | 2021-08-04 00:13:37 +0200 |
---|---|---|
committer | Sibren Vasse | 2021-08-04 00:13:37 +0200 |
commit | 5e5dadb466d29b75dd7ec7810f2572a22cca077e (patch) | |
tree | bbed3550449d7eb34e32d74c88e0ef4a2b8a0da2 | |
parent | e5879ce6e6df15d0570479a0f168db4589dba26b (diff) | |
download | aur-5e5dadb466d29b75dd7ec7810f2572a22cca077e.tar.gz |
Fix relro
-rw-r--r-- | .SRCINFO | 4 | ||||
-rw-r--r-- | PKGBUILD | 12 |
2 files changed, 13 insertions, 3 deletions
@@ -1,12 +1,14 @@ pkgbase = advanced-ssh-config pkgdesc = ssh wrapper using ProxyCommand that adds regex, aliases, gateways, includes, dynamic hostnames to SSH and ssh-config pkgver = 2.11.3 - pkgrel = 2 + pkgrel = 3 url = https://github.com/moul/assh arch = x86_64 license = MIT makedepends = go depends = glibc + optdepends = bash-completion: for shell auto-completion + optdepends = zsh-completions: for shell auto-completion conflicts = assh-git source = advanced-ssh-config-2.11.3.tar.gz::https://github.com/moul/assh/archive/v2.11.3.tar.gz sha256sums = da95db33f72ad2531124b0de42074ba61ac1eebdad90bac90c68d1b02aa51354 @@ -7,24 +7,32 @@ pkgname=advanced-ssh-config _name=assh pkgver=2.11.3 _vcsref=281772c -pkgrel=2 +pkgrel=3 pkgdesc='ssh wrapper using ProxyCommand that adds regex, aliases, gateways, includes, dynamic hostnames to SSH and ssh-config' arch=('x86_64') url='https://github.com/moul/assh' license=('MIT') depends=('glibc') makedepends=('go') +optdepends=( + 'bash-completion: for shell auto-completion' + 'zsh-completions: for shell auto-completion' +) conflicts=('assh-git') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/moul/assh/archive/v${pkgver}.tar.gz") sha256sums=('da95db33f72ad2531124b0de42074ba61ac1eebdad90bac90c68d1b02aa51354') build() { + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export CGO_LDFLAGS="${LDFLAGS}" cd "$_name-$pkgver" go build \ -trimpath \ -buildmode=pie \ -modcacherw \ - -ldflags "-X 'moul.io/assh/v2/pkg/version.Version=${pkgver}' -X 'moul.io/assh/v2/pkg/version.VcsRef=${_vcsref}'" \ + -ldflags "-linkmode external -extldflags \"${LDFLAGS}\" -X 'moul.io/assh/v2/pkg/version.Version=${pkgver}' -X 'moul.io/assh/v2/pkg/version.VcsRef=${_vcsref}'" \ -o assh \ . } |