diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-11-25 21:56:49 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-11-25 21:58:34 +0100 |
commit | 1ad9ac4dfce192b917e228e81514932c791b4490 (patch) | |
tree | d538ec508c2af41c44327d5c67c2e0a17854d2dc /community/git-lfs | |
parent | 6e4543b2e2d547ade54148548ca85d0dd2e89784 (diff) | |
download | aports-1ad9ac4dfce192b917e228e81514932c791b4490.tar.bz2 aports-1ad9ac4dfce192b917e228e81514932c791b4490.tar.xz |
community/git-lfs: don't strip binary, but build with -s -w
Diffstat (limited to 'community/git-lfs')
-rw-r--r-- | community/git-lfs/APKBUILD | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/community/git-lfs/APKBUILD b/community/git-lfs/APKBUILD index f89dd47e97..080d5c5067 100644 --- a/community/git-lfs/APKBUILD +++ b/community/git-lfs/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Jakub Jirutka <jakub@jirutka.cz> pkgname=git-lfs pkgver=2.3.4 -pkgrel=1 +pkgrel=2 pkgdesc="Git extension for versioning large files" url="https://git-lfs.github.io/" arch="all" @@ -10,6 +10,8 @@ license="MIT" depends="git" checkdepends="bash coreutils git-daemon perl-utils" makedepends="go ronn" +# Go doesn't play well with strip tool. http://bit.ly/2jlJsSU +options="!strip" subpackages="$pkgname-doc" install="$pkgname.post-install $pkgname.pre-deinstall" source="$pkgname-$pkgver.tar.gz::https://github.com/git-lfs/$pkgname/archive/v$pkgver.tar.gz @@ -70,10 +72,11 @@ package() { } _gobuild() { - # netcgo - use system's DNS resolver by default. Go's built-in DNS + # -tags netcgo - use system's DNS resolver by default. Go's built-in DNS # resolver is buggy; it resolved localhost to totally wrong IP # address on ARM builders and so caused test failures. - go build -tags netcgo -v "$@" + # -ldflags - omit symbol and debug tables (strip). + go build -tags netcgo -ldflags='-s -w' -v "$@" } sha512sums="97174dc9346979777c3951baa86cfc07c85e2df04f13a50114e016facbb3fd5fde08d38825493d4e7ff149a13c87ae44e9e40350cd4950f27fe309ef62b6724a git-lfs-2.3.4.tar.gz |