summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d57841ec0e8794700ff8804acf5004d0c54eb6ca (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
# Maintainer: Ben Westover <kwestover [dot] kw [at] gmail [dot] com>

pkgbase=bitcoinhd
pkgname=('bitcoinhd-daemon' 'bitcoinhd-cli' 'bitcoinhd-qt' 'bitcoinhd-tx')
pkgver=1.4.3
pkgrel=1
commit=7fe720529
arch=('x86_64' 'i686' 'armv7h' 'aarch64')
url="https://btchd.org/"
license=('MIT')
source=("$pkgbase-$pkgver-src.tar.gz::https://github.com/btchd/btchd/archive/v$pkgver.tar.gz"
        "bitcoinhd-qt.desktop")
source_x86_64=("https://github.com/btchd/btchd/releases/download/v$pkgver/bhd-v$pkgver-$commit-x86_64-linux-gnu.tar.gz")
source_i686=("https://github.com/btchd/btchd/releases/download/v$pkgver/bhd-v$pkgver-$commit-i686-linux-gnu.tar.gz")
source_armv7h=("https://github.com/btchd/btchd/releases/download/v$pkgver/bhd-v$pkgver-$commit-arm-linux-gnueabihf.tar.gz")
source_aarch64=("https://github.com/btchd/btchd/releases/download/v$pkgver/bhd-v$pkgver-$commit-aarch64-linux-gnu.tar.gz")
sha256sums=('d8e5713d68156ca48b4995e0bef6097f1c420126939c95200d9a5cff9896365e'
            '4ec2e2a58ee5f44c2bd602536aa3e217062aaba92a638b06fd7d1cf7eb8f2278')
sha256sums_x86_64=('d5c1887693c2f9d56f44476315ac2f7c68c5ac9751d23c1b988b3ea6e15108bf')
sha256sums_i686=('f9a435277a30ee075da989bf13fdfaa4b2c6fd20e274252c6936acf9721f281f')
sha256sums_armv7h=('1e5abee5de2533fb60ada173314fdd710692ac6ec41d0076b71585202295b331')
sha256sums_aarch64=('5640f2115e6e38e4124442b04d58d06f7abfed84a41fab81c1b2900618344bb3')

package_bitcoinhd-qt() {
	pkgdesc="BitcoinHD is a peer-to-peer network based digital currency - Qt"
	depends=(boost-libs hicolor-icon-theme libevent miniupnpc protobuf qrencode qt5-base zeromq)

	install -Dm755 bhd-v$pkgver/bin/btchd-qt $pkgdir/usr/bin/btchd-qt
	install -Dm644 bhd-v$pkgver/share/man/man1/btchd-qt.1 $pkgdir/usr/share/man/man1/btchd-qt.1
	install -Dm644 btchd-$pkgver/share/pixmaps/bitcoin128.png $pkgdir/usr/share/pixmaps/btchd128.png

	if [ ! -f "/usr/share/licenses/btchd/COPYING" ]; then
	    install -Dm644 btchd-$pkgver/COPYING $pkgdir/usr/share/licenses/btchd/COPYING
	fi
	install -Dm644 bitcoinhd-qt.desktop $pkgdir/usr/share/applications/btchd-qt.desktop
}

package_bitcoinhd-daemon() {
	pkgdesc="BitcoinHD is a peer-to-peer network based digital currency - daemon"
	depends=(boost-libs libevent miniupnpc zeromq)
	backup=('etc/btchd/btchd.conf')

	install -Dm755 bhd-v$pkgver/bin/btchdd $pkgdir/usr/bin/btchdd
	install -Dm644 bhd-v$pkgver/share/man/man1/btchdd.1 $pkgdir/usr/share/man/man1/btchdd.1
	install -Dm644 btchd-$pkgver/share/examples/btchd.conf $pkgdir/etc/btchd/btchd.conf

	if [ ! -f "/usr/share/licenses/btchd/COPYING" ]; then
	    install -Dm644 btchd-$pkgver/COPYING $pkgdir/usr/share/licenses/btchd/COPYING
	fi
}

package_bitcoinhd-cli() {
	pkgdesc="BitcoinHD is a peer-to-peer network based digital currency - RPC client"
	depends=(boost-libs libevent)

	install -Dm755 bhd-v$pkgver/bin/btchd-cli $pkgdir/usr/bin/btchd-cli
	install -Dm644 bhd-v$pkgver/share/man/man1/btchd-cli.1 $pkgdir/usr/share/man/man1/btchd-cli.1

	if [ ! -f "/usr/share/licenses/btchd/COPYING" ]; then
	    install -Dm644 btchd-$pkgver/COPYING $pkgdir/usr/share/licenses/btchd/COPYING
	fi
}

package_bitcoinhd-tx() {
	pkgdesc="BitcoinHD is a peer-to-peer network based digital currency - Transaction tool"
	depends=(boost-libs openssl)

	install -Dm755 bhd-v$pkgver/bin/btchd-tx $pkgdir/usr/bin/btchd-tx
	install -Dm644 bhd-v$pkgver/share/man/man1/btchd-tx.1 $pkgdir/usr/share/man/man1/btchd-tx.1

	if [ ! -f "/usr/share/licenses/btchd/COPYING" ]; then
	    install -Dm644 btchd-$pkgver/COPYING $pkgdir/usr/share/licenses/btchd/COPYING
	fi
}