blob: 7e09ee504327b466474a01094e8dd382f5211c48 (
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
|
# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
pkgbase=decred-git
pkgname=('dcrd-git' 'dcrwallet-git')
pkgver=20170213
pkgrel=1
arch=('i686' 'x86_64')
makedepends=('git' 'glide' 'go')
groups=('decred')
url="https://decred.org"
license=('ISC')
options=('!strip' '!emptydirs')
source=(git+https://github.com/decred/dcrd
git+https://github.com/decred/dcrwallet)
sha256sums=('SKIP' 'SKIP')
pkgver() {
date +%Y%m%d
}
prepare() {
export GOPATH="$srcdir"
git clone "$srcdir/dcrd" "$GOPATH/src/github.com/decred/dcrd"
git clone "$srcdir/dcrwallet" "$GOPATH/src/github.com/decred/dcrwallet"
}
build() {
export GOPATH="$srcdir"
msg2 'Building dcrd and dependencies...'
cd "$GOPATH/src/github.com/decred/dcrd"
glide install
go install $(glide novendor)
msg2 'Building dcrwallet and dependencies...'
cd "$GOPATH/src/github.com/decred/dcrwallet"
glide install
go install . ./cmd/...
msg2 'Prepending dcr to unqualified binaries...'
for _bin in $(find "$srcdir/bin" \
-mindepth 1 \
-maxdepth 1 \
-type f ! -name "dcr*" -printf '%f\n'); do
mv "$srcdir/bin/$_bin" "$srcdir/bin/dcr$_bin"
done
}
package_dcrd-git() {
pkgdesc="Decred daemon written in Go"
provides=('dcrd')
conflicts=('dcrd')
msg2 'Installing dcrd license...'
install -Dm 644 "$srcdir/src/github.com/decred/dcrd/LICENSE" \
-t "$pkgdir/usr/share/licenses/dcrd"
msg2 'Installing dcrd docs...'
for _doc in CHANGES README.md sample-dcrd.conf; do
install -Dm 644 "$srcdir/src/github.com/decred/dcrd/$_doc" \
-t "$pkgdir/usr/share/doc/dcrd"
done
cp -dpr --no-preserve=ownership "$srcdir/src/github.com/decred/dcrd/docs" \
"$pkgdir/usr/share/doc/dcrd"
msg2 'Installing dcrd...'
for _bin in dcraddblock \
dcrcheckdevpremine \
dcrctl \
dcrd \
dcrdbtool \
dcrfindcheckpoint \
dcrgencerts; do
install -Dm 755 "$srcdir/bin/$_bin" -t "$pkgdir/usr/bin"
done
}
package_dcrwallet-git() {
pkgdesc="Secure Decred wallet daemon written in Go"
provides=('dcrwallet')
conflicts=('dcrwallet')
msg2 'Installing dcrwallet license...'
install -Dm 644 "$srcdir/src/github.com/decred/dcrwallet/LICENSE" \
-t "$pkgdir/usr/share/licenses/dcrwallet"
msg2 'Installing dcrwallet docs...'
for _doc in CHANGES README.md sample-dcrwallet.conf; do
install -Dm 644 "$srcdir/src/github.com/decred/dcrwallet/$_doc" \
-t "$pkgdir/usr/share/doc/dcrwallet"
done
cp -dpr --no-preserve=ownership \
"$srcdir/src/github.com/decred/dcrwallet/docs" \
"$pkgdir/usr/share/doc/dcrwallet"
msg2 'Installing dcrwallet...'
for _bin in dcrmovefunds \
dcrsweepaccount \
dcrwallet; do
install -Dm 755 "$srcdir/bin/$_bin" -t "$pkgdir/usr/bin"
done
}
|