summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: bcb04bfec3bd82fd13423920a31a74ea37bb33af (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
# Maintainer:
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: Laramy Black <laramy2020@gmail.com>
pkgname=nuvolaruntime-mse
pkgver=4.16.0
pkgrel=1
pkgdesc="Nuvola Apps Runtime - Tight integration of web apps with your desktop"
arch=('any')
url="https://nuvola.tiliado.eu"
license=('BSD 2-Clause "Simplified"')
depends=("diorite=$pkgver" 'python-gobject' 'json-glib' 'webkit2gtk-mse'
         'python-javascriptcore4' 'libnotify' 'gst-plugins-ugly' 'libdri2'
         'libdrm' 'libsecret' 'libappindicator-gtk3')
makedepends=('git' 'valacef')
optdepends=('libappindicator-gtk3: Tray icon support'
            'engine.io-client'
            'unit.js: for JavaScript unit tests')
provides=("${pkgname%-mse}")
conflicts=("${pkgname%-mse}")
source=("https://github.com/tiliado/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz")
sha256sums=()

prepare() {
	cd "$pkgname-$pkgver"
	sed -i 's|usr/share/vala-0\.36|usr/share/vala-0.46|g' \
		vapi/webkit2gtk-web-extension-4.0.patch vapi/glib-2.0.patch wscript
}

build() {
	cd "$pkgname-$pkgver"
	./waf configure \
		--prefix=/usr \
		--libdir=/usr/lib \
		--no-vala-lint \
		--no-js-lint \
		--no-unity \
		--webkitgtk-supports-mse
	./waf build
}

check() {
	cd "$pkgname-$pkgver"
	LD_LIBRARY_PATH=./build ./build/run-dioritetests
}

package() {
	cd "$pkgname-$pkgver"
	./waf install --destdir="$pkgdir"

	install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}