summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoses Narrow2019-09-08 20:58:58 -0500
committerMoses Narrow2019-09-08 20:58:58 -0500
commita543b3772eb90c7e019941edecf2b47f5b13f76e (patch)
tree00086aec44ff8fa537fcb8b713d726fe730d56f4
parentc49a1ba73ce1bda045dfd8354cbd7b1121f8632c (diff)
downloadaur-a543b3772eb90c7e019941edecf2b47f5b13f76e.tar.gz
moved cx to cx-latest (i.e. latest github commits); replacing cx with build from source of latest versioned release
-rw-r--r--.SRCINFO8
-rw-r--r--PKGBUILD71
2 files changed, 35 insertions, 44 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 6db8f073d3f..7f902e5fd14 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cx
pkgdesc = CX Skycoin Blockchain Programming Language
- pkgver = autogeneratetd
- pkgrel = 4
+ pkgver = 0.7.1
+ pkgrel = 1
url = https://github.com/skycoin/cx
arch = any
makedepends = git
@@ -19,8 +19,8 @@ pkgbase = cx
makedepends = cairo
makedepends = perl
makedepends = pango
- source = git+https://github.com/skycoin/cx.git#branch=develop
- sha256sums = SKIP
+ source = https://github.com/skycoin/cx/archive/v0.7.1.tar.gz
+ sha256sums = 5659cc64d4caa359da4ba68ef2729b2b87e477ce11a9dfe1a751e9a48acf7c6a
pkgname = cx
options = !strip
diff --git a/PKGBUILD b/PKGBUILD
index 1cfd25f95cb..d1dae0e15d3 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,18 +4,18 @@ pkgname=cx
pkgname1=cx
projectname=skycoin
pkgdesc="CX Skycoin Blockchain Programming Language"
-pkgver='autogeneratetd'
-pkggopath="github.com/$projectname/$pkgname1"
-pkgrel=4
+pkgver=0.7.1
+pkggopath="github.com/${projectname}/${pkgname1}"
+pkgrel=1
arch=('any')
url="https://${pkggopath}"
license=()
makedepends=('git' 'go' 'gcc' 'glade' 'xorg-server-xvfb' 'libxinerama' 'libxcursor' 'libxrandr' 'libglvnd' 'libglade' 'mesa' 'libxi' 'cairo' 'perl' 'pango')
-source=("git+${url}.git#branch=${BRANCH:-develop}")
-sha256sums=('SKIP')
+source=("${url}/archive/v${pkgver}.tar.gz")
+sha256sums=('5659cc64d4caa359da4ba68ef2729b2b87e477ce11a9dfe1a751e9a48acf7c6a')
export GOOS=linux
-export GOPATH="$srcdir"
+export GOPATH="${srcdir}"
export CGO_ENABLED=1
@@ -35,21 +35,12 @@ mipsel) export GOARCH="mipsle" ;;
*) return 1 ;;
esac
- pkgver() {
- cd "$srcdir/$pkgname1"
- local date=$(git log -1 --format="%cd" --date=short | sed s/-//g)
- local count=$(git rev-list --count HEAD)
- local commit=$(git rev-parse --short HEAD)
- echo "$date.${count}_$commit"
- }
prepare() {
# https://wiki.archlinux.org/index.php/Go_package_guidelines
- mkdir -p $srcdir/go/src/${pkggopath//$pkgname1/} "$srcdir"/go/bin
- ln -rTsf $srcdir/$pkgname1 $srcdir/go/src/$pkggopath
- cd $srcdir/go/src/$pkggopath/
- git checkout develop
- git submodule --quiet update --init --recursive
+ mkdir -p ${srcdir}/go/src/${pkggopath//${pkgname1}/} "${srcdir}"/go/bin
+ ln -rTsf ${srcdir}/${pkgname1}-${pkgver} ${srcdir}/go/src/${pkggopath}
+ cd ${srcdir}/go/src/${pkggopath}/
#Lines 58 & 59 of the Makefile will try to install debian dependancies if they are not omitted
sed '58s/.*/#&/' Makefile > Makefile1
@@ -57,57 +48,57 @@ prepare() {
sed '59s/.*/#&/' Makefile > Makefile1
mv Makefile1 Makefile
- export GOPATH="$srcdir"/go
+ export GOPATH="${srcdir}"/go
export GOBIN=${GOPATH}/bin
export PATH=${GOPATH}/bin:${PATH}
}
build() {
- export GOPATH=$srcdir/go
+ export GOPATH=${srcdir}/go
export GOBIN=${GOPATH}/bin
export PATH=${GOPATH}/bin:${PATH}
-# cp -b Makefile $srcdir/go/src/$pkggopath/Makefile
- cd $srcdir/go/src/$pkggopath
+# cp -b Makefile ${srcdir}/go/src/${pkggopath}/Makefile
+ cd ${srcdir}/go/src/${pkggopath}
make install-gfx-deps
make build-full
go install \
-gcflags "all=-trimpath=${GOPATH}" \
-asmflags "all=-trimpath=${GOPATH}" \
- -ldflags "-extldflags $LDFLAGS" \
+ -ldflags "-extldflags ${LDFLAGS}" \
-v ./cmd/...
# msg2 'creating cx chains setup script'
-#mkdir -p $srcdir/$pkgname1-scripts
-#cd $srcdir/$pkgname1-scripts
-#chmod +x $pkgname1-chaintest
+#mkdir -p ${srcdir}/${pkgname1}-scripts
+#cd ${srcdir}/${pkgname1}-scripts
+#chmod +x ${pkgname1}-chaintest
}
package() {
msg2 'installing CX'
options=(!strip staticlibs)
#make dirs
-mkdir -p $pkgdir/usr/bin
-mkdir -p $pkgdir/usr/lib/$projectname/go/bin
-mkdir -p $pkgdir/usr/lib/$projectname/go/src/github.com/$projectname/
-mkdir -p $pkgdir/usr/lib/$projectname/$pkgname1/
+mkdir -p ${pkgdir}/usr/bin
+mkdir -p ${pkgdir}/usr/lib/${projectname}/go/bin
+mkdir -p ${pkgdir}/usr/lib/${projectname}/go/src/github.com/${projectname}/
+mkdir -p ${pkgdir}/usr/lib/${projectname}/${pkgname1}/
#install sources
-#cp -r $srcdir/$pkgname1 $pkgdir/usr/lib/$projectname/go/src/github.com/$projectname/$pkgname1
+#cp -r ${srcdir}/${pkgname1} ${pkgdir}/usr/lib/${projectname}/go/src/github.com/${projectname}/${pkgname1}
#install binary
msg2 'installing binaries'
-#cxbins="$srcdir"/go/bin
+#cxbins="${srcdir}"/go/bin
#cxbin=$( ls $cxbins )
#for i in $cxbin; do
#^MAKE DEPENDANCIES ARE IN GOBIN; GET ONLY CX & NEWCOIN
-install -Dm755 $srcdir/go/bin/newcoin $pkgdir/usr/lib/$projectname/go/bin/newcoin
-ln -rTsf $pkgdir/usr/lib/$projectname/go/bin/newcoin $pkgdir/usr/bin/newcoin
-chmod 755 $pkgdir/usr/bin/newcoin
-install -Dm755 $srcdir/go/bin/$pkgname1 $pkgdir/usr/lib/$projectname/go/bin/$pkgname1
-ln -rTsf $pkgdir/usr/lib/$projectname/go/bin/$pkgname1 $pkgdir/usr/bin/$pkgname1
-chmod 755 $pkgdir/usr/bin/$pkgname1
+install -Dm755 ${srcdir}/go/bin/newcoin ${pkgdir}/usr/lib/${projectname}/go/bin/newcoin
+ln -rTsf ${pkgdir}/usr/lib/${projectname}/go/bin/newcoin ${pkgdir}/usr/bin/newcoin
+chmod 755 ${pkgdir}/usr/bin/newcoin
+install -Dm755 ${srcdir}/go/bin/${pkgname1} ${pkgdir}/usr/lib/${projectname}/go/bin/${pkgname1}
+ln -rTsf ${pkgdir}/usr/lib/${projectname}/go/bin/${pkgname1} ${pkgdir}/usr/bin/${pkgname1}
+chmod 755 ${pkgdir}/usr/bin/${pkgname1}
#done
#install the scripts
-#cxscripts=$( ls $srcdir/$pkgname1-scripts )
+#cxscripts=$( ls ${srcdir}/${pkgname1}-scripts )
#for i in $cxscripts; do
-#cp $srcdir/$pkgname1-scripts/$i $pkgdir/usr/bin/$i
+#cp ${srcdir}/${pkgname1}-scripts/$i ${pkgdir}/usr/bin/$i
#done
}