summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f891f316ce0ec3fb71fbd4588d74c4766c09238a (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
# Maintainer: L00_Cyphg3r <aur.archlinux.org@loo.sh>
# Maintainer: Rolf van Kleef <aur@rolfvankleef.nl>
# Contributor: Gregory Goijaerts <crecketgaming@gmail.com>
# Contributor: Dennis Snijder <dennissnijder97@gmail.com>
# Contributor: Nick Duijvelshoff <nick@duijvelshoff.com>
# Contributor: basst85 <bastiaan85@gmail.com>
# Contributor: Kees Kluskens
# Contributor: TimZ99
# Contributor: Emile Bons

pkgname="bunq-desktop-bin"
pkgver="0.9.10"
pkgrel=1
pkgdesc="A desktop implementation for the bunq API"
url="https://github.com/BunqCommunity/BunqDesktop"
provides=('bunq-desktop')
conflicts=(
	'bunq-desktop-git'
	'bunq-desktop-src'
)

arch=(
	'x86_64'
)

license=(
	'MIT'
)

depends=(
	'nodejs'
)

makedepens=(
	'git'
	'yarn'
)

source=(
	bunqDesktop-linux-unpacked-${pkgver}.tar.gz::"https://github.com/bunqCommunity/bunqDesktop/releases/download/${pkgver}/bunqDesktop-linux-unpacked.tar.gz"
	${pkgver}-512x512.png::"https://github.com/bunqCommunity/bunqDesktop/raw/${pkgver}/build/icons/512x512.png"
	"$pkgname.desktop"
)

sha256sums=(
	"d382d8a8df45e801446e3abe6f858033da434c8f17ea460b5c6e9af21f94806f"
	"580274ac3f60cce7789cdb69afc67b9db43da09b04fd82ad563fdec4337302d1"
	"1d84f185830733bb38928fcaa33ffc0ba46140f7f116b4d5ad24c93a585a0ffa"
)

package() {
	mkdir $pkgdir/usr
	mkdir $pkgdir/usr/bin
	mkdir $pkgdir/usr/share
	mkdir $pkgdir/usr/share/pixmaps
	mkdir $pkgdir/opt

	cp -R\
		dist/linux-unpacked\
		$pkgdir/opt/$pkgname

	cp\
		${pkgver}-512x512.png\
		$pkgdir/usr/share/pixmaps/bunq.png
	
	pushd $pkgdir/usr/bin

	ln -s\
		../../opt/$pkgname/bunqdesktop\
		bunq-desktop-src

	popd

	desktop-file-install\
		$pkgname.desktop\
		--dir $pkgdir/usr/share/applications/
}