Date: Tuesday, May 19, 2020 @ 05:16:02 Author: svenstaro Revision: 629786
archrelease: copy trunk to community-x86_64 Added: gox/repos/community-x86_64/PKGBUILD (from rev 629785, gox/trunk/PKGBUILD) Deleted: gox/repos/community-x86_64/PKGBUILD ----------+ PKGBUILD | 75 ++++++++++++++++++++++++++++++------------------------------- 1 file changed, 38 insertions(+), 37 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2020-05-19 05:15:57 UTC (rev 629785) +++ PKGBUILD 2020-05-19 05:16:02 UTC (rev 629786) @@ -1,37 +0,0 @@ -# Maintainer: Sven-Hendrik Haase <svenst...@gmail.com> -# Contributor: Simon Legner <simon.leg...@gmail.com> -# Contributor: Dmitri Goutnik <d...@syrec.org> -# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com> - -pkgname=gox -pkgver=1.0.1 -pkgrel=3 -pkgdesc="A simple, no-frills tool for Go cross compilation" -arch=('x86_64') -url="https://github.com/mitchellh/${pkgname}" -license=('MPL2') -depends=('glibc') -makedepends=('go-pie') -source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") -sha256sums=('25aab55a4ba75653931be2a2b95e29216b54bd8fecc7931bd416efe49a388229') - -prepare() { - cd "$srcdir/$pkgname-$pkgver" - go mod vendor -} - -build() { - cd "$srcdir/$pkgname-$pkgver" - go build -mod=vendor -trimpath -ldflags "-extldflags $LDFLAGS" -} - -check() { - cd $pkgname-$pkgver - go test -mod=vendor -} - -package() { - cd "$srcdir/$pkgname-$pkgver" - install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname" - install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" -} Copied: gox/repos/community-x86_64/PKGBUILD (from rev 629785, gox/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2020-05-19 05:16:02 UTC (rev 629786) @@ -0,0 +1,38 @@ +# Maintainer: Sven-Hendrik Haase <svenst...@gmail.com> +# Contributor: Simon Legner <simon.leg...@gmail.com> +# Contributor: Dmitri Goutnik <d...@syrec.org> +# Contributor: Lubomir 'Kuci' Kucera <kuci24-at-gmail-dot-com> + +pkgname=gox +pkgver=1.0.1 +pkgrel=4 +pkgdesc="A simple, no-frills tool for Go cross compilation" +arch=('x86_64') +url="https://github.com/mitchellh/${pkgname}" +license=('MPL2') +depends=('glibc') +makedepends=('go') +source=("${pkgname}-${pkgver}.tar.gz::${url}/archive/v${pkgver}.tar.gz") +sha256sums=('25aab55a4ba75653931be2a2b95e29216b54bd8fecc7931bd416efe49a388229') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + export CGO_LDFLAGS="${LDFLAGS}" + export CGO_CFLAGS="${CFLAGS}" + export CGO_CPPFLAGS="${CPPFLAGS}" + export CGO_CXXFLAGS="${CXXFLAGS}" + export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw" + go build . +} + +check() { + cd $pkgname-$pkgver + go test . +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + install -Dm755 $pkgname "$pkgdir/usr/bin/$pkgname" + install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" +}