summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOndrej Patrovic2016-10-26 00:47:55 -0400
committerOndrej Patrovic2016-10-26 00:47:55 -0400
commit16dd4aacface2d9f871f9e9fc6fb50312e84d7b8 (patch)
tree33bfafecb1aa68837fa99e9ae43a9e6008d024c8
downloadaur-16dd4aacface2d9f871f9e9fc6fb50312e84d7b8.tar.gz
initial commit of package
-rw-r--r--.SRCINFO27
-rwxr-xr-xPKGBUILD45
2 files changed, 72 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3d360a0b1ca
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = messengerfordesktop-bin
+ pkgdesc = Beautiful desktop client for Facebook Messenger. Binary version.
+ pkgver = 2.0.1
+ pkgrel = 1
+ url = http://messengerfordesktop.com/
+ arch = i686
+ arch = x86_64
+ license = MIT
+ makedepends = tar
+ depends = libxtst
+ depends = alsa-lib
+ depends = gtk2
+ depends = gconf
+ depends = libnotify
+ depends = nss
+ conflicts = messengerfordesktop
+ conflicts = messengerfordesktop-git
+ noextract = messengerfordesktop-2.0.1-linux-i386.deb
+ noextract = messengerfordesktop-2.0.1-linux-amd64.deb
+ options = !strip
+ source = https://github.com/Aluxian/Facebook-Messenger-Desktop/releases/download/v2.0.1/messengerfordesktop-2.0.1-linux-i386.deb
+ source = https://github.com/Aluxian/Facebook-Messenger-Desktop/releases/download/v2.0.1/messengerfordesktop-2.0.1-linux-amd64.deb
+ sha256sums = ed05f1afb3d25589c071276c7cc12bff1f5a6e4acb301eeab1cc3300a97d5726
+ sha256sums = d4c9eebc60f51c2ba5c136617f6dd71121feb3d8c99b7b563498109d7be74d45
+
+pkgname = messengerfordesktop-bin
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100755
index 00000000000..2c9dc7ad891
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,45 @@
+# Maintainer: Ondrej Patrovic <ondrej@patrovic.com>
+# Contributor: Marcin Wieczorek <marcin@marcin.co>
+
+_pkgname=messengerfordesktop
+pkgname=${_pkgname}-bin
+pkgver=2.0.1
+pkgrel=1
+pkgdesc="Beautiful desktop client for Facebook Messenger. Binary version."
+arch=('i686' 'x86_64')
+url="http://messengerfordesktop.com/"
+license=('MIT')
+conflicts=('messengerfordesktop' 'messengerfordesktop-git')
+options=(!strip)
+depends=('libxtst' 'alsa-lib' 'gtk2' 'gconf' 'libnotify' 'nss')
+makedepends=('tar')
+
+if [ $CARCH == x86_64 ]; then
+ noextract=("${_pkgname}-${pkgver}-linux-amd64.deb")
+ sha256sums=('d4c9eebc60f51c2ba5c136617f6dd71121feb3d8c99b7b563498109d7be74d45')
+else
+ noextract=("${_pkgname}-${pkgver}-linux-i386.deb")
+ sha256sums=('ed05f1afb3d25589c071276c7cc12bff1f5a6e4acb301eeab1cc3300a97d5726')
+fi
+
+source=("https://github.com/Aluxian/Facebook-Messenger-Desktop/releases/download/v${pkgver}/${noextract[0]}")
+
+package() {
+ mkdir ${_pkgname}
+ ar p ${noextract[0]} data.tar.gz | tar -xzC ${_pkgname}
+
+ cd ${_pkgname}
+ find . -type f -exec install -Dm 644 {,"${pkgdir}/"}{} \;
+
+ cd "${pkgdir}"
+
+ # Fix the window class in desktop file
+ sed -i "s/\(StartupWMClass\).\+/\1=messenger for desktop/" "usr/share/applications/${_pkgname}.desktop"
+
+ cd "opt/${_pkgname}"
+
+ # Restore execute bit on binary
+ chmod +x ${_pkgname}
+
+ install -Dm 644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}