diff options
author | Dimitris Kiziridis | 2020-05-21 01:05:36 +0300 |
---|---|---|
committer | Dimitris Kiziridis | 2020-05-21 01:05:36 +0300 |
commit | ef6e19edace1264dad1fe7e14437ce877637547a (patch) | |
tree | d72e8e2c9d8a5f11af95f226d8c61f168d1d6a2f | |
parent | 2cbea0c6e30e8e0cd21bbfddae5c13dd473abec2 (diff) | |
download | aur-ef6e19edace1264dad1fe7e14437ce877637547a.tar.gz |
update pkgbuild, go-pie replaced
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 19 |
2 files changed, 11 insertions, 10 deletions
@@ -5,7 +5,7 @@ pkgbase = sshesame-git url = https://github.com/jaksi/sshesame arch = x86_64 license = Apache - makedepends = go-pie + makedepends = go depends = glibc source = git+https://github.com/jaksi/sshesame sha256sums = SKIP @@ -8,7 +8,7 @@ arch=('x86_64') url='https://github.com/jaksi/sshesame' license=('Apache') depends=('glibc') -makedepends=('go-pie') +makedepends=('go') source=("git+https://github.com/jaksi/sshesame") sha256sums=('SKIP') @@ -19,21 +19,22 @@ pkgver() { prepare() { cd "${srcdir}/sshesame" - mkdir -p $srcdir/go - export GOPATH="${srcdir}"/go - export PATH=$PATH:$GOPATH/bin - go get -d -v ./... + mkdir -p build/ } build() { cd "${srcdir}/sshesame" - export GOPATH="${srcdir}"/go - export PATH=$PATH:$GOPATH/bin - go build -v -o sshesame-bin + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -modcacherw" + # go get -d -v ./... + go build -o build ./... } package() { cd "${srcdir}/sshesame" - install -Dm755 sshesame-bin "${pkgdir}/usr/bin/sshesame" + install -Dm755 build/sshesame "${pkgdir}/usr/bin/sshesame" install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" }
\ No newline at end of file |