summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 976a1d6ac0428027cb97b5f861fe9614640f57a7 (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: 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-src"
pkgver="0.8.1"
pkgrel=1
pkgdesk="A desktop implementation for the bunq API"
url="https://github.com/BunqCommunity/BunqDesktop"

arch=(
	'x86_64'
)

license=(
	'MIT'
)

depends=(
	'nodejs'
)

makedepens=(
	'git'
	'yarn'
)

source=(
	"https://github.com/BunqCommunity/BunqDesktop/archive/${pkgver}.tar.gz"
	"bunq-desktop-src.desktop"
)

sha256sums=(
	"d89fad53a2b8dda0bd02bfc1a1bdd3edb3f1513215b7954970cec91fe024908d"
	"1d84f185830733bb38928fcaa33ffc0ba46140f7f116b4d5ad24c93a585a0ffa"
)

build() {
	cd BunqDesktop-$pkgver

	# Generate release files
	yarn && yarn release
}

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

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

	cp -R\
		BunqDesktop-$pkgver/LICENSE\
		$pkgdir

	cp\
		BunqDesktop-$pkgver/build/icons/512x512.png\
		$pkgdir/usr/share/pixmaps/bunq.png

	ln -s\
		$pkgdir/opt/$pkgname/bunqdesktop\
		$pkgdir/usr/bin/bunq-desktop-src

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