summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO20
-rw-r--r--PKGBUILD28
2 files changed, 29 insertions, 19 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bafc8c1f570..cc106136abe 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,9 +1,19 @@
pkgbase = cx
pkgdesc = CX Blockchain Programming Language. skycoin.com/cx
- pkgver = 0.7.1
- pkgrel = 4
+ pkgver = 0.7.5
+ pkgrel = 1
url = https://github.com/skycoin/cx
- arch = any
+ arch = i686
+ arch = x86_64
+ arch = aarch64
+ arch = armv8
+ arch = armv7
+ arch = armv7l
+ arch = armv7h
+ arch = armv6h
+ arch = armhf
+ arch = armel
+ arch = arm
makedepends = git
makedepends = go
makedepends = gcc
@@ -22,8 +32,8 @@ pkgbase = cx
makedepends = goyacc
makedepends = musl
makedepends = kernel-headers-musl
- source = https://github.com/skycoin/cx/archive/v0.7.1.tar.gz
- sha256sums = 1deb342041cc365c92617e8cf6c24801ff3011f2df90a988b4541b5bc83be4fe
+ source = https://github.com/skycoin/cx/archive/v0.7.5.tar.gz
+ sha256sums = 19163610f70022923633b1176a73d8fb713a7dc85b3cd33c4ae490c8c9788495
pkgname = cx
options = !strip
diff --git a/PKGBUILD b/PKGBUILD
index d5f7df69afa..f79a7ab3269 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,16 +5,16 @@ _pkgname=$pkgname
_projectname=skycoin
_githuborg=$_projectname
pkgdesc="CX Blockchain Programming Language. skycoin.com/cx"
-pkgver=0.7.1
+pkgver=0.7.5
_pkggopath="github.com/${_githuborg}/${_pkgname}"
_pkggopath1="github.com/SkycoinProject/${_pkgname}"
-pkgrel=4
-arch=('any')
+pkgrel=1
+arch=('i686' 'x86_64' 'aarch64' 'armv8' 'armv7' 'armv7l' 'armv7h' 'armv6h' 'armhf' 'armel' 'arm')
url="https://${_pkggopath}"
license=()
makedepends=('git' 'go' 'gcc' 'glade' 'xorg-server-xvfb' 'libxinerama' 'libxcursor' 'libxrandr' 'libglvnd' 'libglade' 'mesa' 'libxi' 'cairo' 'perl' 'pango' 'goyacc' 'musl' 'kernel-headers-musl')
source=("${url}/archive/v${pkgver}.tar.gz")
-sha256sums=('1deb342041cc365c92617e8cf6c24801ff3011f2df90a988b4541b5bc83be4fe')
+sha256sums=('19163610f70022923633b1176a73d8fb713a7dc85b3cd33c4ae490c8c9788495')
#validpgpkeys=('DE08F924EEE93832DABC642CA8DC761B1C0C0CFC' # Moses Narrow <moe_narrow@use.startmail.com>
#'98F934F04F9334B81DFA3398913BBD5206B19620') #iketheadore skycoin <luxairlake@protonmail.com>
@@ -28,8 +28,7 @@ prepare() {
}
build() {
- set -x
- export GOPATH=${srcdir}/go
+ export GOPATH=${srcdir}/go
export GOBIN=${GOPATH}/bin
export CC=musl-gcc
# cp -b Makefile ${srcdir}/go/src/${_pkggopath}/Makefile
@@ -42,11 +41,12 @@ build() {
_cmddir=${srcdir}/go/src/${_pkggopath1}/cmd
#static compilation
_msg2 'building cx binary'
- cd ${srcdir}/go/src/${_pkggopath1}/
- go build -tags="base cxfx" -trimpath --ldflags '-linkmode external -extldflags "-static" -buildid=' -i -o $GOBIN/ cxgo/.
- cd ${srcdir}/go/src/${_pkggopath1}/cmd/newcoin
- _msg2 'building cx-newcoin binary'
- go build -trimpath --ldflags '-linkmode external -extldflags "-static" -buildid=' -o $GOBIN/ . #binary transparency
+ cd ${srcdir}/go/src/${_pkggopath1}/cmd/cx
+ #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/${_pkggopath1}/cmd/newcoin
+ #_msg2 'building cx-newcoin binary'
+ #go build -trimpath --ldflags '-linkmode external -extldflags "-static" -buildid=' -o $GOBIN/ . #binary transparency
cd $GOBIN
msg2 'binary sha256sums'
sha256sum $(ls)
@@ -60,9 +60,9 @@ package() {
# mkdir -p ${pkgdir}/opt/${_projectname}/go/src/github.com/${_projectname}/
mkdir -p ${pkgdir}/opt/${_pkgname}/
#^MAKE DEPENDANCIES ARE IN GOBIN; GET ONLY CX & NEWCOIN
- install -Dm755 ${srcdir}/go/bin/newcoin ${pkgdir}/opt/${_pkgname}/bin/newcoin
- ln -rTsf ${pkgdir}/opt/${_pkgname}/bin/newcoin ${pkgdir}/usr/bin/newcoin
- chmod 755 ${pkgdir}/usr/bin/newcoin
+# install -Dm755 ${srcdir}/go/bin/newcoin ${pkgdir}/opt/${_pkgname}/bin/newcoin
+# ln -rTsf ${pkgdir}/opt/${_pkgname}/bin/newcoin ${pkgdir}/usr/bin/newcoin
+# chmod 755 ${pkgdir}/usr/bin/newcoin
install -Dm755 ${srcdir}/go/bin/${_pkgname} ${pkgdir}/opt/${_pkgname}/bin/${_pkgname}
ln -rTsf ${pkgdir}/opt/${_pkgname}/bin/${_pkgname} ${pkgdir}/usr/bin/${_pkgname}
chmod 755 ${pkgdir}/usr/bin/${_pkgname}