diff options
author | Moses Narrow | 2021-02-22 19:56:17 -0600 |
---|---|---|
committer | Moses Narrow | 2021-02-22 19:56:17 -0600 |
commit | af1d987e7415b4a7aba0553750734462e09c14ae (patch) | |
tree | 2857723fa57ef5aaf2eb78ce9b7bfd64694c14a8 | |
parent | c86dc3c4e2c96af290a9ae8fc8852cf5d0e76244 (diff) | |
download | aur-af1d987e7415b4a7aba0553750734462e09c14ae.tar.gz |
fix build
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 22 |
2 files changed, 14 insertions, 10 deletions
@@ -1,7 +1,7 @@ pkgbase = cx-latest pkgdesc = CX Skycoin Blockchain Programming Language - most recent github commits (+opengl) pkgver = autogenerated - pkgrel = 4 + pkgrel = 1 url = https://github.com/skycoin/cx arch = any makedepends = git @@ -7,7 +7,8 @@ _githuborg=${_projectname} pkgdesc="CX Skycoin Blockchain Programming Language - most recent github commits (+opengl)" pkgver='autogenerated' _pkggopath="github.com/${_githuborg}/${_pkgname}" -pkgrel=4 +pkgrel=1 +#pkgrel=1 arch=('any') url="https://${_pkggopath}" license=() @@ -40,6 +41,8 @@ prepare() { build() { export GOPATH=${srcdir}/go export GOBIN=${GOPATH}/bin + export CC=musl-gcc +set -x # export PATH=${GOPATH}/bin:${PATH} # cp -b Makefile ${srcdir}/go/src/${pkggopath}/Makefile cd ${srcdir}/go/src/${_pkggopath} @@ -51,11 +54,12 @@ goyacc -o cxgo/parser/cxgo.go cxgo/parser/cxgo.y _cmddir=${srcdir}/go/src/${_pkggopath}/cmd #static compilation _msg2 'building cx binary' -cd ${srcdir}/go/src/${_pkggopath}/ -go build -tags="base cxfx" -trimpath --ldflags '-linkmode external -extldflags "-static" -buildid=' -i -o $GOBIN/ cxgo/. -cd ${srcdir}/go/src/${_pkggopath}/cmd/newcoin -_msg2 'building newcoin binary' -go build -trimpath --ldflags '-linkmode external -extldflags "-static" -buildid=' -o $GOBIN/ . #binary transparency +cd ${srcdir}/go/src/${_pkggopath}/cxgo +#go build -tags="base cxfx" -trimpath --ldflags '-linkmode external -extldflags "-static" -buildid=' -i -o $GOBIN/ cxgo/. +go build -trimpath --ldflags '-linkmode external -extldflags "-static" -buildid=' -o $GOBIN/ . +#cd ${srcdir}/go/src/${_pkggopath}/cmd/newcoin +#_msg2 'building newcoin binary' +#go build -trimpath --ldflags '-linkmode external -extldflags "-static" -buildid=' -o $GOBIN/ . #binary transparency cd $GOBIN msg2 'binary sha256sums' sha256sum $(ls) @@ -70,9 +74,9 @@ mkdir -p ${pkgdir}/opt/${_pkgname}/bin #install sources #cp -r ${srcdir}/${pkgname1} ${pkgdir}/usr/lib/${projectname}/go/src/github.com/${projectname}/${pkgname1} _msg2 'installing binaries' -install -Dm755 ${srcdir}/go/bin/newcoin ${pkgdir}/opt/${_pkgname}/bin/newcoin -ln -rTsf ${pkgdir}/opt/${_pkgname}/bin ${pkgdir}/usr/bin/newcoin -install -Dm755 ${srcdir}/go/bin/${_pkgname} ${pkgdir}/opt/${_pkgname}/bin/${_pkgname} +#install -Dm755 ${srcdir}/go/bin/newcoin ${pkgdir}/opt/${_pkgname}/bin/newcoin +#ln -rTsf ${pkgdir}/opt/${_pkgname}/bin ${pkgdir}/usr/bin/newcoin +install -Dm755 ${srcdir}/go/bin/${_pkgname}go ${pkgdir}/opt/${_pkgname}/bin/${_pkgname} ln -rTsf ${pkgdir}/opt/${_pkgname}/bin/${_pkgname} ${pkgdir}/usr/bin/${_pkgname} chmod 755 ${pkgdir}/usr/bin/* } |