-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbitshares-cli.src.tar.xz
39 lines (33 loc) · 10 KB
/
bitshares-cli.src.tar.xz
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
35
36
37
38
39
bitshares-cli/PKGBUILD 0000755 0000000 0000000 00000001662 12521215647 013446 0 ustar root root # Maintainer: modprobe
pkgname=bitshares-cli
pkgver=0.9.0
pkgrel=1
pkgdesc="A decentralized, P2P bank and exchange"
arch=('i686' 'x86_64')
url="https://bitshares.org/"
license="Public Domain"
depends=('boost' 'zlib')
makedepends=('git' 'cmake' 'clang' 'ninja')
conflicts=('bitshares-git')
source=("git://github.com/BitShares/bitshares.git")
sha256sums=('SKIP')
_gitname="bitshares"
pkgver() {
cd "$srcdir/$_gitname"
git describe --tags | sed "s/-.*//" | sed "s/bts\///"
}
build() {
cd "$srcdir/$_gitname"
#Fetch submodules
git checkout `git describe --tags`
git submodule update --init --recursive
cd "libraries/fc"; git checkout master; git pull; cd -
#Do the actual build
cmake -G Ninja -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Release .
ninja bitshares_client
}
package() {
cd "$srcdir/$_gitname"
install -D -m755 ./programs/client/bitshares_client $pkgdir/usr/bin/bitshares-cli
}