summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMarcin Wieczorek2016-04-21 00:29:44 +0200
committerMarcin Wieczorek2016-04-21 00:29:44 +0200
commit93b6d9369e4b3b2ed4cf9cdb2ff989a4c9090693 (patch)
tree7766243d562e43cca6927d58e33f1829386baf31 /PKGBUILD
downloadaur-93b6d9369e4b3b2ed4cf9cdb2ff989a4c9090693.tar.gz
Version 1.4.7
Diffstat (limited to 'PKGBUILD')
-rwxr-xr-xPKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..871a37da85e
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Marcin Wieczorek <marcin@marcin.co>
+
+pkgname=messengerfordesktop-git
+pkgver=v1.4.7
+pkgrel=1
+pkgdesc="Beautiful desktop client for Facebook Messenger. Sytten's fork"
+arch=('i686' 'x86_64')
+url="http://messengerfordesktop.com/"
+license=('MIT')
+options=(!strip)
+depends=('gcc-libs' 'cairo' 'libxtst' 'alsa-lib' 'gtk2' 'gconf' 'libnotify' 'fontconfig' 'nss')
+makedepends=('git' 'gulp' 'npm')
+source=("$pkgname::git+https://github.com/Sytten/Facebook-Messenger-Desktop.git")
+md5sums=('SKIP')
+
+build() {
+ cd $pkgname
+ npm install
+
+ if [ $(uname -m) == "i686" ]
+ then
+ _arch="linux32"
+ else
+ _arch="linux64"
+ fi
+
+ gulp build:${_arch}
+}
+
+package() {
+ cd "${srcdir}/messengerfordesktop-git/build/Messenger/${_arch}"
+ mkdir -p "${pkgdir}/opt/MessengerForDesktop/"
+ install -D -m644 "Messenger" "${pkgdir}/opt/MessengerForDesktop/Messenger"
+ install -D -m644 "nw.pak" "${pkgdir}/opt/MessengerForDesktop/nw.pak"
+ install -D -m644 "icudtl.dat" "${pkgdir}/opt/MessengerForDesktop/icudtl.dat"
+
+ cd "${srcdir}/messengerfordesktop-git/assets-linux"
+ install -D -m644 "${srcdir}/messengerfordesktop-git/assets-linux/messengerfordesktop.desktop" "${pkgdir}/usr/share/applications/messengerfordesktop.desktop"
+ install -D -m644 "icons/256/messengerfordesktop.png" "${pkgdir}/usr/share/pixmaps/messengerfordesktop.png"
+}