summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b19ac99da2acaf51e34b56f51674e0f0f1f06a36 (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
# Maintainer: Mika Hyttinen <mika dot hyttinen+arch ät gmail dot com>
pkgname=cellframe-wallet
pkgver=1.1.6
pkgrel=3
pkgdesc="Cellframe wallet"
arch=('x86_64' 'aarch64')
url="https://cellframe.net"
license=('GPL3')
depends=(cellframe-node qt5-graphicaleffects qt5-base qt5-quickcontrols2 qt5-quickcontrols qt5-svg)
makedepends=(git qt5-base qt5-declarative qt5-svg)
options=()
source=(git+https://gitlab.demlabs.net/cellframe/$pkgname.git#commit=3477bbec4de917455e4fa1629eb7b2427835d5df)
md5sums=('SKIP')
install=$pkgname.install

prepare() {
	cd "$srcdir/$pkgname"
	git submodule update --init --recursive --progress
}

build() {
	cd "$srcdir/$pkgname"
	sed -i 's|CellFrameNode||g' CellframeWalletProject.pro
	head -n -1 CellframeWalletProject.pro | tee CellframeWalletProject.pro 
	qmake
	make -j$(nproc)
}

package() {
	cd "$srcdir/$pkgname"
	make INSTALL_ROOT="$pkgdir" install
	mkdir -p "$pkgdir/opt/$pkgname/dapps/download"
	mkdir -p "$pkgdir/var/log/$pkgname"
	chmod -R 777 "$pkgdir/opt/$pkgname/dapps"
	chmod -R 777 "$pkgdir/var/log/$pkgname"
	install -Dm 644 "$pkgdir/opt/$pkgname/share/CellFrameWallet.desktop" -t "$pkgdir/usr/share/applications/" || return 1
	install -Dm 644 "$srcdir/$pkgname/LICENSE" -t "$pkgdir/usr/share/licenses/$pkgname" || return 1

}