blob: 11d40697c6b27a4e88e12884877014334a4cdd0a (
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
|
# Maintainer: Mika Hyttinen <mika dot hyttinen+arch ät gmail dot com>
pkgname=cellframe-node-debug
_pkgname=cellframe-node
pkgver=5.2.415
pkgrel=2
pkgdesc="Cellframe blockchain node with a powerful SDK"
arch=('x86_64' 'aarch64')
url="https://cellframe.net"
license=('LGPL3')
makedepends=(git cmake python3)
depends=(logrotate libxcrypt-compat)
provides=("cellframe-node" "cellframe-node-cli" "cellframe-node-tool")
source=(git+https://gitlab.demlabs.net/cellframe/_$pkgname.git#commit=96f9f3a8528b4dfa4f8290bace6eefe390c3c919
git+https://gitlab.demlabs.net/cellframe/cellframe-sdk.git#commit=353df5b0dea992ad0d5c94cd77f64420e70bd485
git+https://gitlab.demlabs.net/dap/dap-sdk.git#commit=e4d47c35c709fe43aee0af96b595995c5cf1f8e7
git+https://gitlab.demlabs.net/cellframe/python-cellframe.git#commit=8c61033d60fac596af8121998827394f6fc241c2
cellframe-node.logrotate
cellframe-node-logrotate.service
cellframe-node-logrotate.timer
cellframe-node.service)
md5sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'6a52220e0b285dc9e803082f36897ad4'
'7c1087eea7336d99c4af55119673b009'
'47edb0d55d537e72f3de07ec6a72ea78'
'72472d529b38f06a78f37ac659b18d65')
install=$_pkgname.install
conflicts=(cellframe-dashboard cellframe-wallet cellframe-node)
options=(!buildflags !makeflags)
prepare() {
rm -rf "$srcdir/$_pkgname/cellframe-sdk"
rm -rf "$srcdir/$_pkgname/python-cellframe"
rm -rf "$srcdir/$_pkgname/dap-sdk"
ln -sf "$srcdir/cellframe-sdk" "$srcdir/$_pkgname/cellframe-sdk"
ln -sf "$srcdir/python-cellframe" "$srcdir/$_pkgname/python-cellframe"
ln -sf "$srcdir/dap-sdk" "$srcdir/$_pkgname/dap-sdk"
}
build() {
cd "$_pkgname"
cmake -B build \
-DCMAKE_BUILD_TYPE='Debug' \
-Wno-dev
cmake --build build -j$(nproc)
}
package() {
cd "$_pkgname"
DESTDIR="$pkgdir" cmake --install build
install -Dm 644 "$srcdir/$_pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$_pkgname"
install -Dm 644 "$srcdir/$_pkgname.logrotate" "$pkgdir/etc/logrotate.d/$_pkgname"
install -Dm 644 "$srcdir/$_pkgname.service" -t "$pkgdir/usr/lib/systemd/system"
install -Dm 644 "$srcdir/$_pkgname-logrotate.service" -t "$pkgdir/usr/lib/systemd/system"
install -Dm 644 "$srcdir/$_pkgname-logrotate.timer" -t "$pkgdir/usr/lib/systemd/system"
}
|