summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoses Narrow2019-03-08 14:19:42 -0600
committerMoses Narrow2019-03-08 14:19:42 -0600
commit39f7ce3544dd8bf93acc5828a11e2bd7bfbb3143 (patch)
tree17606b49b5d5edf84a81e1f7b46d681e0f199ccc
downloadaur-39f7ce3544dd8bf93acc5828a11e2bd7bfbb3143.tar.gz
first commit; added PKGBUILD & .SRCINFO
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD34
2 files changed, 50 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..5e74217a767
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = cx
+ pkgdesc = CX Skycoin Blockchain Programming Language
+ pkgver = 6.1
+ pkgrel = 1
+ url = https://github.com/skycoin/cx
+ arch = x86_64
+ license = MIT
+ makedepends = unzip
+ source = https://github.com/skycoin/cx/releases/download/v0.6.1/cx-0.6.1-bin-linux-x64.zip
+ validpgpkeys = DE08F924EEE93832DABC642CA8DC761B1C0C0CFC
+ sha256sums = d55f7f64ba5a1c47601f4545c5bf87c76c7d8b98bb47ce0126138b50462d27f2
+
+pkgname = cx
+ options = !strip
+ options = staticlibs
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d71f72a4e90
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Moses Narrow <moe_narrow@use.startmail.com>
+# Maintainer: Steve Skydev <steve@skycoin.net>
+pkgname=cx
+projectname=skycoin
+pkgdesc="CX Skycoin Blockchain Programming Language"
+pkgver=6.1
+pkggopath="github.com/$projectname/$pkgname"
+pkgrel=1
+arch=('x86_64')
+url="https://${pkggopath}"
+license=(MIT)
+makedepends=('unzip')
+source=("https://github.com/skycoin/cx/releases/download/v0.6.1/cx-0.6.1-bin-linux-x64.zip")
+sha256sums=('d55f7f64ba5a1c47601f4545c5bf87c76c7d8b98bb47ce0126138b50462d27f2')
+validpgpkeys=('DE08F924EEE93832DABC642CA8DC761B1C0C0CFC')
+
+prepare() {
+mkdir -p $srcdir/bin
+mv cx-0.6.1-bin-linux-x64.zip $srcdir/bin/cx-0.6.1-bin-linux-x64.zip
+cd $srcdir/bin
+unzip cx-0.6.1-bin-linux-x64.zip
+}
+
+package() {
+msg2 'installing CX'
+options=(!strip staticlibs)
+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
+}