-
Notifications
You must be signed in to change notification settings - Fork 0
/
PKGBUILD
60 lines (49 loc) · 2.25 KB
/
PKGBUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Maintainer: mkzero <me [at] linux-web-development [dot] de>
pkgname=yakyak-git
pkgver=1
pkgrel=1
pkgdesc="Desktop client for Google Hangouts"
arch=('x86_64' 'i686')
url="https://github.com/yakyak/yakyak"
license=('MIT')
makedepends=('unzip' 'nodejs' 'npm')
depends=('libgcrypt15' 'libnotify' 'gconf' 'alsa-lib' 'nss' 'libxtst' 'gtk2' 'libgnome-keyring' 'git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
_electron_version=0.30.2
_platform=ia32
[[ $CARCH == 'x86_64' ]] && _arch='x64' || _arch='ia32'
source=("yakyak::git+https://github.com/yakyak/yakyak#branch=master"
"yakyak.desktop")
source_i686=("https://github.com/atom/electron/releases/download/v${_electron_version}/electron-v${_electron_version}-linux-ia32.zip")
source_x86_64=("https://github.com/atom/electron/releases/download/v${_electron_version}/electron-v${_electron_version}-linux-x64.zip")
sha256sums=('SKIP' 'ba537052daca0bacd1f957792c24150eade47bba296423a7a7d48e92f3946587')
sha256sums_i686=('ecd0529896d963e6b716eb1003e1747f07752dfd3850f08ed6e012190f30c1fa')
sha256sums_x86_64=('3475f41619c0764ddaae968c8b600365ef25fe6a66b4b046050c3020bc681f9c')
noextract=("electron-v${_electron_version}-linux-${_arch}.zip")
pkgver() {
cd "$srcdir$pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
unzip "electron-v${_electron_version}-linux-${_arch}.zip" -d "${srcdir}/electron-${_electron_version}"
mv "${srcdir}/electron-${_electron_version}/electron" "${srcdir}/electron-${_electron_version}/yakyak"
}
build() {
cd "${srcdir}/yakyak"
npm install
./node_modules/gulp/bin/gulp.js
cp -a "${srcdir}/yakyak/app" "${srcdir}/electron-${_electron_version}/resources/"
}
package() {
install -dm755 "${pkgdir}/usr/share/"
cp -R "${srcdir}/electron-${_electron_version}" "${pkgdir}/tmp"
mv "${pkgdir}/tmp" "${pkgdir}/usr/share/${pkgname}"
install -dm755 "${pkgdir}/usr/bin"
ln -s "/usr/share/${pkgname}/yakyak" "${pkgdir}/usr/bin/${pkgname%-git}"
install -Dm644 "${srcdir}/yakyak.desktop" "${pkgdir}/usr/share/applications/yakyak.desktop"
install -Dm644 "${srcdir}/yakyak/src/icons/icon_256.png" "${pkgdir}/usr/share/pixmaps/yakyak.png"
}