diff options
author | Thomas P | 2017-07-30 16:35:30 +0200 |
---|---|---|
committer | Thomas P | 2017-07-30 16:35:56 +0200 |
commit | 2e9d0b065ad173ba3c4a633cc025e86e25c41226 (patch) | |
tree | 463df5da29e247503fe17d6f3468e51c4753e834 | |
download | aur-glowing-bear-git.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 92 | ||||
-rw-r--r-- | glowing-bear.desktop | 10 |
3 files changed, 122 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fcb4891d7450 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = glowing-bear-git + pkgdesc = A web client for Weechat (Electron version) + pkgver = v0.6.0.r248.gd87a2cd + pkgrel = 1 + url = http://www.glowing-bear.org/ + arch = x86_64 + arch = i686 + groups = irc + groups = weechat + license = GPL-3.0 + makedepends = npm + makedepends = git + depends = electron + source = git+https://github.com/glowing-bear/glowing-bear.git + source = glowing-bear.desktop + sha256sums = SKIP + sha256sums = 715aa2fc3c39d8079bbf37c97f6f8a74c4cca41a6cab61726660dc6d0ed46fd6 + +pkgname = glowing-bear-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..4297038f4f08 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,92 @@ +# This is an example PKGBUILD file. Use this as a start to creating your own, +# and remove these comments. For more information, see 'man PKGBUILD'. +# NOTE: Please fill out the license field for your package! If it is unknown, +# then please put 'unknown'. + +# Maintainer: Thomas P. <tpxp@live.fr> +pkgname=glowing-bear-git +pkgver=v0.6.0.r248.gd87a2cd +pkgrel=1 +pkgdesc="A web client for Weechat (Electron version)" +arch=(x86_64 i686) +url="http://www.glowing-bear.org/" +license=('GPL-3.0') +groups=(irc weechat) +depends=(electron) +makedepends=(npm git) +checkdepends=() +optdepends=() +provides=() +conflicts=() +replaces=() +backup=() +options=() +install= +changelog= +source=("git+https://github.com/glowing-bear/glowing-bear.git" + "glowing-bear.desktop") +noextract=() +sha256sums=("SKIP" + "715aa2fc3c39d8079bbf37c97f6f8a74c4cca41a6cab61726660dc6d0ed46fd6") +validpgpkeys=() + +prepare() { + # Install the dependencies + cd "glowing-bear" + npm install +} + +pkgver() { + cd "glowing-bear" + git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { + cd "glowing-bear" + npm run build-electron-linux +} + +check() { + cd "glowing-bear" + ./run_tests.sh +} + +package() { + # Copy the app to usr/lib/glowing-bear + cd "$pkgdir" + mkdir -p usr/lib/glowing-bear + + cd "$srcdir" + cd "glowing-bear" + cd Glowing\ Bear-linux-* + cp * -R "$pkgdir/usr/lib/glowing-bear" + + # Register the binary as glowing-bear + cd "$pkgdir" + mkdir -p usr/bin + cd usr/bin + ln -s ../lib/glowing-bear/Glowing\ Bear glowing-bear + + # Add the scalable icon + cd "$pkgdir" + mkdir -p usr/share/icons/hicolor/scalable/apps + cd usr/share/icons/hicolor/scalable/apps + ln -s ../../../../../lib/glowing-bear/resources/app/assets/img/glowing-bear.svg glowing-bear.svg + + # Add the 128x128 icon + cd "$pkgdir" + mkdir -p usr/share/icons/hicolor/128x128/apps + cd usr/share/icons/hicolor/128x128/apps + ln -s ../../../../../lib/glowing-bear/resources/app/assets/img/glowing_bear-128x128.png glowing-bear.png + + # Add the .desktop file + cd "$pkgdir" + mkdir -p usr/share/applications + cp "$srcdir/glowing-bear.desktop" usr/share/applications/ + + # FIX: Create the init.json file and make it writeable by anyone + # This avoids an error popup when quitting GlowingBear + cd "$pkgdir" + touch usr/lib/glowing-bear/resources/app/init.json + chmod 777 usr/lib/glowing-bear/resources/app/init.json +} diff --git a/glowing-bear.desktop b/glowing-bear.desktop new file mode 100644 index 000000000000..7d2978f2f8ce --- /dev/null +++ b/glowing-bear.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Encoding=UTF-8 +Name=GlowingBear +Comment=A web client for WeeChat +Comment[fr]=Un client web pour Weechat +Exec=glowing-bear +Icon=glowing-bear +Terminal=false +Categories=Internet;Communication;IRC; |