blob: 07ef1031a84335efb5af64c8b15fa9a3ceeb4950 (
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
|
# Maintainer: Mika Hyttinen <mika dot hyttinen+arch ät gmail dot com>
pkgname="cellframe-dashboard"
_nodename="cellframe-node"
pkgver=2.13.5
pkgrel=4
pkgdesc="Super application for managing Cellframe node"
arch=(x86_64 aarch64)
url="https://cellframe.net"
license=(GPL3)
depends=(qt5-graphicaleffects qt5-base qt5-quickcontrols2 qt5-quickcontrols logrotate libxcrypt-compat)
makedepends=(git qt5-base qt5-declarative cmake python3)
options=(!makeflags !buildflags)
source=(git+https://gitlab.demlabs.net/cellframe/$pkgname.git#commit=d0b026a4655c603330390265de10ec157b76f615
cellframe-node.logrotate
cellframe-node-logrotate.timer
cellframe-node-logrotate.service
cellframe-node.service)
md5sums=('SKIP'
'95ea2a9af2bdd2e08d44494673d2a9f3'
'47edb0d55d537e72f3de07ec6a72ea78'
'7c1087eea7336d99c4af55119673b009'
'72472d529b38f06a78f37ac659b18d65')
conflicts=(cellframe-node cellframe-wallet)
install=$pkgname.install
prepare() {
cd "$srcdir/$pkgname"
cat << EOF > .gitmodules
[submodule "cellframe-ui-sdk"]
path = cellframe-ui-sdk
url = https://gitlab.demlabs.net/cellframe/cellframe-ui-sdk.git
branch = master
[submodule "dap-ui-sdk"]
path = dap-ui-sdk
url = https://gitlab.demlabs.net/dap/dap-ui-sdk
branch = master
[submodule "prod_build"]
path = prod_build
url = https://gitlab.demlabs.net/cellframe/prod_build_cellframe-dashboard
branch = master
[submodule "cellframe-node"]
path = cellframe-node
url = https://gitlab.demlabs.net/cellframe/cellframe-node
branch = master
[submodule "web3_api"]
path = web3_api
url = https://gitlab.demlabs.net/cellframe/web3_api.git
branch = master
EOF
echo "+++ Fetching submodule sources..."
git submodule sync
git submodule update --init --recursive
}
build() {
cd "$srcdir/$pkgname"
qmake
make -j$(nproc)
}
package() {
cd "$srcdir/$pkgname"
make INSTALL_ROOT="$pkgdir" install
install -Dm 644 "$pkgdir/opt/$pkgname/share/CellFrameDashboard.desktop" -t "$pkgdir/usr/share/applications/"
install -Dm 644 "$pkgdir/opt/$pkgname/share/init.d/$pkgname.service" -t "$pkgdir/usr/lib/systemd/system/"
install -Dm 644 "$srcdir/$pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm 644 "$srcdir/$pkgname/$_nodename/LICENSE" -t "$pkgdir/usr/share/licenses/$_nodename"
install -Dm 644 "$srcdir/$_nodename.logrotate" "$pkgdir/etc/logrotate.d/$_nodename"
install -Dm 644 "$srcdir/$_nodename-logrotate.service" -t "$pkgdir/usr/lib/systemd/system"
install -Dm 644 "$srcdir/$_nodename-logrotate.timer" -t "$pkgdir/usr/lib/systemd/system"
install -Dm 644 "$srcdir/$_nodename.service" -t "$pkgdir/usr/lib/systemd/system"
}
|