[arch-commits] Commit in messengerfordesktop/trunk (PKGBUILD)
Nicola Squartini
tensor5 at archlinux.org
Thu Aug 31 10:05:29 UTC 2017
Date: Thursday, August 31, 2017 @ 10:05:29
Author: tensor5
Revision: 255168
upgpkg: messengerfordesktop 2.0.9+42+g4e4d6f1-1
Update to work with Electron 1.6.
Modified:
messengerfordesktop/trunk/PKGBUILD
----------+
PKGBUILD | 24 +++++++++++++++++-------
1 file changed, 17 insertions(+), 7 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2017-08-31 09:54:32 UTC (rev 255167)
+++ PKGBUILD 2017-08-31 10:05:29 UTC (rev 255168)
@@ -2,19 +2,20 @@
# Maintainer: Nicola Squartini <tensor5 at gmail.com>
pkgname=messengerfordesktop
-pkgver=2.0.9
+pkgver=2.0.9+42+g4e4d6f1
pkgrel=1
+_commit=4e4d6f1fd4bf3b8c0fa48ed6459efda9c4064461
pkgdesc='A simple & beautiful desktop client for Facebook Messenger'
arch=('i686' 'x86_64')
url='https://messengerfordesktop.com/'
license=('MIT')
depends=('electron')
-makedepends=('apm' 'npm')
+makedepends=('apm' 'git' 'npm')
options=(!emptydirs)
-source=("${pkgname}-${pkgver}.tar.gz::https://github.com/Aluxian/Messenger-for-Desktop/archive/v${pkgver}.tar.gz"
+source=("git+https://github.com/Aluxian/Messenger-for-Desktop#commit=${_commit}"
"${pkgname}.js"
'use-system-electron.patch')
-sha256sums=('f0b68a2dd6bdfd5d7effa21747abb222b5716c2284ae62b9a5e8ae410f00ef9d'
+sha256sums=('SKIP'
'55e6da47ddbf383fc8a6ef6e0aae5621b7800c8efe46422c1c352d6c029c1f45'
'014ef8a03e38d4e5c5cab49cb6a2e9fbf81de9aecbfc66aeadf124844a541a66')
@@ -24,17 +25,25 @@
_target=linux64
fi
+pkgver() {
+ cd Messenger-for-Desktop
+
+ git describe --tags | sed 's/-/+/g;s/v//'
+}
+
prepare() {
- cd Messenger-for-Desktop-${pkgver}
+ cd Messenger-for-Desktop
patch -Np1 -i "${srcdir}"/use-system-electron.patch
sed -e 's|/opt/{{ name }}/||' \
-i resources/linux/app.desktop \
-i resources/linux/startup.desktop
+ sed -e "s|'updates-auto-check': true|'updates-auto-check': false|" \
+ -i src/scripts/browser/utils/prefs-defaults.js
}
build() {
- cd Messenger-for-Desktop-${pkgver}
+ cd Messenger-for-Desktop
npm install
cd src
@@ -45,7 +54,7 @@
}
package() {
- cd Messenger-for-Desktop-${pkgver}
+ cd Messenger-for-Desktop
appdir=/usr/lib/${pkgname}
@@ -86,6 +95,7 @@
-or -name 'hunspell' -prune -exec rm -r '{}' \; \
-or -name 'Makefile' -exec rm '{}' \; \
-or -name 'obj.target' -prune -exec rm -r '{}' \; \
+ -or -name 'scripts' -prune -exec rm -r '{}' \; \
-or -name 'test' -prune -exec rm -r '{}' \; \
-or -name 'tests' -prune -exec rm -r '{}' \; \
-or -name 'tools' -prune -exec rm -r '{}' \;
More information about the arch-commits
mailing list