summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMoses Narrow2019-04-08 17:01:24 -0500
committerMoses Narrow2019-04-08 17:01:24 -0500
commitdd26ee6fcfbf96fc25ffd97f3fd6584049dfe5b4 (patch)
tree866fb4bcd2ccb6e53421f042de8edfc08eb790b1 /PKGBUILD
parenta11a5111319a1109d9251d581ea1e7e203e53021 (diff)
downloadaur-dd26ee6fcfbf96fc25ffd97f3fd6584049dfe5b4.tar.gz
fix version
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD14
1 files changed, 7 insertions, 7 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 6f39c636f4c..0b10805e759 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,22 +3,22 @@
pkgname=cx
projectname=skycoin
pkgdesc="CX Skycoin Blockchain Programming Language"
-pkgver=6.2
+pkgver=0.6.2
pkggopath="github.com/$projectname/$pkgname"
pkgrel=1
arch=('x86_64')
url="https://${pkggopath}"
license=()
makedepends=('unzip')
-source=("https://github.com/skycoin/cx/releases/download/v0.6.2/cx-0.6.2-bin-linux-x64.zip")
+source=("https://$pkggopath/releases/download/v$pkgver/$pkgname-$pkgver-bin-linux-x64.zip")
sha256sums=('eca1452d7d24be43d122213c70e8c573a6debb32f9834dd6531068f48ab34422')
validpgpkeys=('DE08F924EEE93832DABC642CA8DC761B1C0C0CFC')
prepare() {
mkdir -p $srcdir/bin
-mv cx-0.6.2-bin-linux-x64.zip $srcdir/bin/cx-0.6.2-bin-linux-x64.zip
+mv $pkgname-$pkgver-bin-linux-x64.zip $srcdir/bin/$pkgname-$pkgver-bin-linux-x64.zip
cd $srcdir/bin
-unzip cx-0.6.2-bin-linux-x64.zip
+unzip $pkgname-$pkgver-bin-linux-x64.zip
}
package() {
@@ -28,7 +28,7 @@ mkdir -p $pkgdir/usr/bin
mkdir -p $pkgdir/usr/lib/$projectname/go/bin
export GOPATH=$pkgdir/usr/lib/$projectname/go
export GOBIN=$pkgdir/usr/lib/$projectname/go/bin
-install -Dm755 $srcdir/cx $pkgdir/usr/lib/$projectname/go/bin/cx
-ln -rTsf $pkgdir/usr/lib/$projectname/go/bin/cx $pkgdir/usr/bin/cx
-chmod 755 $pkgdir/usr/bin/cx
+install -Dm755 $srcdir/$pkgname $pkgdir/usr/lib/$projectname/go/bin/$pkgname
+ln -rTsf $pkgdir/usr/lib/$projectname/go/bin/$pkgname $pkgdir/usr/bin/$pkgname
+chmod 755 $pkgdir/usr/bin/$pkgname
}