blob: 817a8e58fb6300ef81a4efda31475721cc2f1fd6 (
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
|
# Maintainer: Romain Bazile <gromain.baz at gmail>
pkgname=lhc-dashboard-desktop
pkgver=1.6.10
pkgrel=1
pkgdesc="CERN's LHC Dashboard for desktop. Uses Electron, v1.6.10"
arch=('i686' 'x86_64')
url="https://lhcdashboard.web.cern.ch/"
license=('unknown')
makedepends=('nodejs-nativefier')
provides=('lhc-dashboard-desktop')
source=('lhc-dashboard-desktop.png'
'lhc-dashboard-desktop.desktop'
'lhc-dashboard-desktop.sh')
sha512sums=('27f2254ea42e5930aae679a682396580b415cae10ea36c895221bb2001100c22521394ca5cfba9c30d3784192a266469d41f0b9546f79c0ec04caaee9f9f2958'
'ee492a68c104fa3f17af6eb831d6fbacee72ea9b557a476f567e1e1a025cffc190a7cf69863f123e67952e876f7b643844bc5e42c5818cbe4d57cef4e8c51021'
'25f1d8d850772eb65bbad5d0bf2fc9f900ac9fe9c0e3bb180a9066324befba445d715f6db67fe2916aa94c02a8a6dd18dc17fc768247eea4a02310ccf21efd67')
options=('!strip')
build() {
cd $srcdir
# op-webtools.web.cern.ch/Vistar/vistars.php
nativefier lhcdashboard.web.cern.ch \
--name "lhc-dashboard" \
--disable-context-menu \
--disable-dev-tools \
--width 900px \
--height 900px \
--min-width 900px \
--min-height 900px \
--electron-version 1.6.10 \
--honest \
-i "../$pkgname.png"
rm -rf lhc-dashboard
mv lhc-dashboard-linux* lhc-dashboard
}
package() {
install -dm755 "$pkgdir/opt/lhc-dashboard"
install -dm755 "$pkgdir/usr/bin/"
install -dm755 "$pkgdir/usr/share/pixmaps/"
install -dm755 "$pkgdir/usr/share/applications/"
cp -R "$srcdir/lhc-dashboard/." "$pkgdir/opt/lhc-dashboard/"
chmod 755 "$pkgdir/opt/lhc-dashboard/resources/app"
install -Dm755 "$srcdir/$pkgname.desktop" "$pkgdir/usr/share/applications/$pkgname.desktop"
install -Dm755 "$srcdir/$pkgname.png" "$pkgdir/usr/share/pixmaps/lhc-dashboard.png"
install -Dm755 "$srcdir/$pkgname.sh" "$pkgdir/usr/bin/$pkgname"
}
|