New package: riot-desktop-0.13.5
Fixed license for riot-desktop Closes: #11647 [via git-merge-pr] Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
0dbc19ab54
commit
dc8d26445b
3 changed files with 52 additions and 0 deletions
10
srcpkgs/riot-desktop/files/riot-desktop.desktop
Normal file
10
srcpkgs/riot-desktop/files/riot-desktop.desktop
Normal file
|
@ -0,0 +1,10 @@
|
|||
[Desktop Entry]
|
||||
Name=Riot
|
||||
Comment=A feature-rich client for Matrix.org
|
||||
Exec="/usr/bin/riot-desktop"
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Icon=riot
|
||||
StartupWMClass="Riot"
|
||||
Categories=Network;InstantMessaging;Chat;IRCClient
|
||||
|
1
srcpkgs/riot-desktop/files/riot-desktop.sh
Normal file
1
srcpkgs/riot-desktop/files/riot-desktop.sh
Normal file
|
@ -0,0 +1 @@
|
|||
/usr/share/riot-desktop/dist/electron /usr/share/riot-desktop/electron_app
|
41
srcpkgs/riot-desktop/template
Normal file
41
srcpkgs/riot-desktop/template
Normal file
|
@ -0,0 +1,41 @@
|
|||
# Template file for 'riot-desktop'
|
||||
pkgname=riot-desktop
|
||||
version=0.13.5
|
||||
revision=1
|
||||
only_for_archs="i686 x86_64"
|
||||
conf_files="/etc/${pkgname}/config.json"
|
||||
wrksrc="riot-web-${version}"
|
||||
hostmakedepends="nodejs git"
|
||||
depends="c-ares ffmpeg gtk+3 http-parser libevent libxslt minizip nss re2 snappy"
|
||||
short_desc="A glossy Matrix collaboration client, desktop version"
|
||||
maintainer="zethra <jediben97@gmail.com>"
|
||||
license="Apache-2.0"
|
||||
homepage="https://riot.im"
|
||||
distfiles="https://github.com/vector-im/riot-web/archive/v${version}.tar.gz"
|
||||
checksum=877512b5a2112e48299de723f251cfa578d130875609a2060fbfc8037bb4480d
|
||||
nocross=yes
|
||||
nostrip=yes
|
||||
|
||||
do_build() {
|
||||
npm install
|
||||
npm run build
|
||||
npm install electron
|
||||
npm run install:electron
|
||||
}
|
||||
|
||||
do_install() {
|
||||
mkdir -p $DESTDIR/usr/share/riot-desktop
|
||||
mkdir -p $DESTDIR/etc/riot-desktop
|
||||
vcopy node_modules/electron/dist /usr/share/riot-desktop/
|
||||
vcopy electron_app /usr/share/riot-desktop/
|
||||
vcopy webapp /usr/share/riot-desktop
|
||||
vinstall config.sample.json 664 /etc/riot-desktop/ config.json
|
||||
vlicense LICENSE
|
||||
ln -s /etc/riot-desktop/config.json $DESTDIR/usr/share/riot-desktop/config.json
|
||||
vbin ${FILESDIR}/riot-desktop.sh riot-desktop
|
||||
vinstall ${FILESDIR}/riot-desktop.desktop 644 /usr/share/applications/ riot-desktop.desktop
|
||||
vinstall src/skins/vector/img/logos/riot-logo.svg 644 /usr/share/icons/hicolor/scalable/apps/ riot.svg
|
||||
for i in 16 24 48 64 96 128 256 512; do
|
||||
vinstall electron_app/build/icons/${i}x${i}.png 644 /usr/share/icons/hicolor/${i}x${i}/apps/ riot.png
|
||||
done
|
||||
}
|
Loading…
Reference in a new issue