blob: d0b9259ab87882c9d7aa651e483472d3aba33ed5 (
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
|
# Maintainer: redfish <redfish@galactica.pw>
_BUILD_QT_GUI=1 # comment out to unset
pkgbase=gostcoin-git
pkgname=('gostcoind-git')
if [ ! -z "$_BUILD_QT_GUI" ]
then
pkgname+=('gostcoin-qt-git')
fi
pkgver=0.8.5.12
pkgrel=1
pkgdesc="Coin based on GOST R 34.10 and GOST R 34.11-2012 with I2P support"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
url="http://gostcoin.i2p"
license=('MIT')
makedepends=('boost' 'cmake')
depends=('boost-libs' 'openssl')
if [ ! -z "$_BUILD_QT_GUI" ]
then
depends+=('qt5-base')
fi
optdepends=('i2pd: I2P network transport')
source=("${pkgbase%%-git}::git+https://github.com/GOSTSec/gostcoin"
"gostcoind.service"
"gostcoind.conf")
pkgver() {
cd ${pkgbase%%-git}
echo $(git describe --tags --long | sed 's/^v//' | sed 's/\([^-]*-g\)/r\1/;s/-/./g')
}
prepare() {
cd $srcdir/${pkgbase%%-git}
}
build() {
cd $srcdir/${pkgbase%%-git}/src
make -f makefile.unix
}
package_gostcoind-git(){
cd $srcdir/${pkgbase%%-git}
provides=('gostcoind')
conflicts=('gostcoind')
install="${pkgname%%-git}.install"
backup=("etc/gostcoind.conf")
install -Dm755 $srcdir/${pkgbase%%-git}/src/gostcoind "$pkgdir/usr/bin/gostcoind"
install -Dm0644 $srcdir/gostcoind.service $pkgdir/usr/lib/systemd/system/gostcoind.service
install -Dm0644 $srcdir/gostcoind.conf $pkgdir/etc/gostcoind.conf
install -Dm644 $srcdir/${pkgbase%%-git}/COPYING $pkgdir/${_share_dest}/licenses/${pkgbase%%-git}/LICENSE
}
package_gostcoin-qt-git(){
cd $srcdir/${pkgbase%%-git}
provides=('gostcoin-qt')
conflicts=('gostcoin-qt')
qmake DEFINES+=BOOST_ASIO_ENABLE_OLD_SERVICES
make
install -Dm755 $srcdir/${pkgbase%%-git}/gostcoin-qt "$pkgdir/usr/bin/gostcoin-qt"
}
sha256sums=('SKIP'
'2f3621bdfe990bad094f1a31735af60582eef05150c685d974546b1c8de0b8ce'
'7f123c96f26bcd8e1ea12603e2c92988795ac516a8e4b1c2bdc670e51016ae67')
|