summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO26
-rwxr-xr-xPKGBUILD40
2 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b56feea3af4
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = messengerfordesktop-git
+ pkgdesc = Beautiful desktop client for Facebook Messenger. Sytten's fork
+ pkgver = v1.4.7
+ pkgrel = 1
+ url = http://messengerfordesktop.com/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = git
+ makedepends = gulp
+ makedepends = npm
+ depends = gcc-libs
+ depends = cairo
+ depends = libxtst
+ depends = alsa-lib
+ depends = gtk2
+ depends = gconf
+ depends = libnotify
+ depends = fontconfig
+ depends = nss
+ options = !strip
+ source = messengerfordesktop-git::git+https://github.com/Sytten/Facebook-Messenger-Desktop.git
+ md5sums = SKIP
+
+pkgname = messengerfordesktop-git
+
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"
+}