summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d71f72a4e9001740311afbb0f5acc7c41884dcb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
}