summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Lucas2019-08-01 06:28:09 -0400
committerJean Lucas2019-08-01 06:28:09 -0400
commitf53f5b137c6554e2e7fe2bad3e78b7fc11d7f2c0 (patch)
tree82447f7431a1de4cf43e75adb45548787927c50f
downloadaur-f53f5b137c6554e2e7fe2bad3e78b7fc11d7f2c0.tar.gz
Initial commit
-rw-r--r--.SRCINFO46
-rw-r--r--PKGBUILD46
-rw-r--r--whalebird.desktop9
3 files changed, 101 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..14d2cd1842f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,46 @@
+pkgbase = whalebird-desktop-git
+ pkgdesc = Electron-based Mastodon/Pleroma client (git)
+ pkgver = 2.8.2+r9+ge3b5ef3
+ pkgrel = 1
+ url = https://whalebird.org
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = npm
+ depends = alsa-lib
+ depends = atk
+ depends = at-spi2-atk
+ depends = cairo
+ depends = dbus
+ depends = gdk-pixbuf2
+ depends = glib2
+ depends = gtk3
+ depends = hicolor-icon-theme
+ depends = libcups
+ depends = libglvnd
+ depends = libx11
+ depends = libxcb
+ depends = libxcomposite
+ depends = libxcursor
+ depends = libxdamage
+ depends = libxext
+ depends = libxfixes
+ depends = libxi
+ depends = libxrandr
+ depends = libxrender
+ depends = libxss
+ depends = libxtst
+ depends = nspr
+ depends = nss
+ depends = pango
+ provides = whalebird
+ conflicts = whalebird
+ conflicts = whalebird-bin
+ source = git+https://github.com/h3poteto/whalebird-desktop
+ source = whalebird.desktop
+ sha512sums = SKIP
+ sha512sums = 3e5f29fc6db305957b81abc8e4b4679fbd979bbf41ce0c190b19c31a96a3bfe03b624885961ce6d7410716d286c82548b960ebbc1e547c1cacc0b16175eecee2
+
+pkgname = whalebird-desktop-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..7037d1feec0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,46 @@
+# Maintainer: Jean Lucas <jean@4ray.co>
+
+pkgname=whalebird-desktop-git
+pkgver=2.8.2+r9+ge3b5ef3
+pkgrel=1
+pkgdesc='Electron-based Mastodon/Pleroma client (git)'
+arch=(i686 x86_64)
+url=https://whalebird.org
+license=(MIT)
+provides=(whalebird)
+conflicts=(whalebird whalebird-bin)
+depends=(alsa-lib atk at-spi2-atk cairo dbus gdk-pixbuf2 glib2 gtk3 hicolor-icon-theme libcups libglvnd libx11 libxcb libxcomposite libxcursor libxdamage libxext libxfixes libxi libxrandr libxrender libxss libxtst nspr nss pango)
+makedepends=(git npm)
+source=(git+https://github.com/h3poteto/whalebird-desktop
+ whalebird.desktop)
+sha512sums=('SKIP'
+ '3e5f29fc6db305957b81abc8e4b4679fbd979bbf41ce0c190b19c31a96a3bfe03b624885961ce6d7410716d286c82548b960ebbc1e547c1cacc0b16175eecee2')
+
+pkgver() {
+ cd whalebird-desktop
+ git describe --tags | sed 's#-#+#g;s#+#+r#'
+}
+
+build() {
+ cd whalebird-desktop
+ npm i
+ npm run build
+ npx electron-builder --dir
+}
+
+package() {
+ install -Dm 644 whalebird.desktop -t "$pkgdir"/usr/share/applications
+
+ cd ${pkgname/-git/}/build
+
+ mkdir "$pkgdir"/usr/{lib,bin}
+ cp -a linux-unpacked "$pkgdir"/usr/lib/${pkgname/-git/}
+ ln -s /usr/lib/${pkgname/-git/}/whalebird "$pkgdir"/usr/bin/whalebird
+
+ for i in 16 32 128 256 512; do
+ install -Dm 644 icons/icon.iconset/icon_${i}x${i}.png \
+ "$pkgdir"/usr/share/icons/hicolor/${i}x${i}/apps/whalebird.png
+ done
+
+ install -Dm 644 ../LICENSE.txt -t "$pkgdir"/usr/share/licenses/${pkgname/-git/}
+}
diff --git a/whalebird.desktop b/whalebird.desktop
new file mode 100644
index 00000000000..3f6ffab227d
--- /dev/null
+++ b/whalebird.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Version=1.0
+Type=Application
+Name=Whalebird
+Comment=Electron-based Mastodon/Pleroma client
+Exec=whalebird
+Icon=whalebird
+Categories=Network;
+Terminal=false