blob: f8b1ee641c07995e1e50cd1eefdc200d31ded715 (
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
|
# Maintainer: Albert Mikaelyan <tahvok at gmail dot com>
# Contributor: mrypsilon
pkgbase=gridcoinresearch
pkgname=(gridcoinresearch-qt gridcoinresearchd)
pkgver=5.4.8.0_hotfix_1
pkgrel=1
pkgdesc="A cryptocurrency that rewards users for participating on the BOINC network"
makedepends=('boost' 'qt5-charts' 'qt5-tools' 'qrencode')
depends=('db5.3' 'libzip')
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="https://gridcoin.us"
license=('MIT')
_sourcename="Gridcoin-Research-${pkgver//_/-}"
source=("$pkgbase-$pkgver.tar.gz::https://github.com/gridcoin-community/Gridcoin-Research/archive/${pkgver//_/-}.tar.gz")
sha256sums=('bf77d34bd07448b35b57969c5ef44189c28d12b1cd4cf7e4b56b868bbeb0a1e2')
# leaving in case needed for future patches
#prepare() {
# cd "$srcdir/$_sourcename"
# patch --strip=1 --input="../trafficgraphwidget.cpp.patch"
#}
build() {
cd "$srcdir/$_sourcename"
./autogen.sh
mkdir -p build && cd build
#BDB_LIBS="-ldb_cxx-5.3" BDB_CFLAGS="-I/usr/include/db5.3" ../configure --prefix=/usr --with-gui=qt5 --with-incompatible-bdb
../configure --prefix=/usr --with-gui=qt5
make DESTDIR="$srcdir/$_sourcename" install
}
check() {
cd "$srcdir/$_sourcename/build"
make check
}
package_gridcoinresearch-qt() {
pkgdesc="A cryptocurrency that rewards users for participating on the BOINC network (Qt GUI)"
depends=('libzip' 'boost-libs' 'miniupnpc' 'qrencode' 'qt5-base' 'qt5-charts' 'qt5-svg')
optdepends=('boinc: to earn Gridcoin rewards by doing computational research')
cd "$srcdir/$_sourcename"
install -Dm755 usr/bin/gridcoinresearch "$pkgdir/usr/bin/gridcoinresearch"
install -Dm644 usr/share/applications/gridcoinresearch.desktop "$pkgdir/usr/share/applications/gridcoinresearch.desktop"
cp -r usr/share/icons "$pkgdir/usr/share/icons"
install -Dm644 doc/gridcoinresearch.1 "$pkgdir/usr/share/man/man1/gridcoinresearch.1"
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
package_gridcoinresearchd() {
pkgdesc="A cryptocurrency that rewards users for participating on the BOINC network (Daemon/CLI)"
depends=('libzip' 'boost-libs' 'miniupnpc')
optdepends=('boinc: to earn Gridcoin rewards by doing computational research')
replaces=('gridcoinresearch-daemon')
conflicts=('gridcoinresearch-daemon')
cd "$srcdir/$_sourcename"
install -Dm755 usr/bin/gridcoinresearchd "$pkgdir/usr/bin/gridcoinresearchd"
install -Dm644 doc/gridcoinresearchd.1 "$pkgdir/usr/share/man/man1/gridcoinresearchd.1"
install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
}
|