blob: 4434774582837bda3362fae2ea6642c6deb373f5 (
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
|
# Maintainer: Mark Wagie <mark dot wagie at tutanota dot com>
# Contributor: Sonny Piers <sonny at fastmail dot net>
pkgname=tangram
pkgver=1.3.1
pkgrel=1
pkgdesc="Run web apps on your desktop."
arch=('any')
url="https://apps.gnome.org/app/re.sonny.Tangram"
license=('GPL3')
depends=('gjs' 'libsoup' 'webkit2gtk')
conflicts=('gigagram' "$pkgname-web")
replaces=("$pkgname-web")
makedepends=('git' 'npm' 'meson')
#checkdepends=('appstream-glib')
source=("${pkgname%-web}::git+https://github.com/sonnyp/Tangram.git#tag=v$pkgver"
'git+https://github.com/sonnyp/troll.git')
sha256sums=('SKIP'
'SKIP')
prepare() {
cd "$srcdir/$pkgname"
git submodule init
git config submodule.src/troll.url $srcdir/troll
git submodule update
}
build() {
pushd "$srcdir/$pkgname"
npm install --cache "$srcdir/npm-cache"
./node_modules/.bin/rollup -c
popd
arch-meson "$pkgname" build
meson compile -C build
}
check() {
# Validate appstream file fails, only validate desktop & schema files
meson test 'Validate desktop file' 'Validate schema file' -C build --print-errorlogs
}
package(){
DESTDIR="$pkgdir" meson install -C build
ln -s /usr/bin/re.sonny.Tangram "$pkgdir/usr/bin/$pkgname"
}
|