blob: eec3b2775539d149b1a4933d8063e09e2e16499c (
plain)
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
|
# Maintainer: Lev Lybin <lev.lybin at gmail dot com>
# Maintainer: Maksym Sheremet <msheremet at sheremets dot com>
pkgname=upwork
pkgver=5.6.8.0
_rawver=${pkgver//./_}
_hashver='836f43f6f6be4149'
_pkgupname='Upwork'
pkgrel=1
pkgdesc='Desktop Application'
arch=(x86_64)
url='https://www.upwork.com/downloads/'
license=(custom)
conflicts=(upwork-alpha)
depends=(alsa-lib gtk3 libjpeg-turbo nss)
source=(https://upwork-usw2-desktopapp.upwork.com/binaries/v${_rawver}_${_hashver}/upwork_${pkgver}_amd64.deb
LICENSE
upwork)
sha256sums=('b3a52f773d633837882dc107b206006325722ca5d5d5a1e8bdf5453f872e1b6f'
'793d8d7bc0f088c48798bda3d5483972636c6b8c5dcd9aeaf85411f7d4547b38'
'53bbbd18d7dbbcc27a1405ce9745d95f08be64a234b8fb3312cc2e6ef70e3e9b')
prepare() {
tar -xJf data.tar.xz
}
package() {
# Base
install -dm755 $pkgdir/opt/${_pkgupname}
cp -dr --no-preserve=ownership opt/Upwork/* $pkgdir/opt/${_pkgupname}/
# Code ref: https://github.com/electron-userland/electron-builder/blob/master/packages/app-builder-lib/templates/linux/after-install.tpl
# SUID chrome-sandbox for Electron 5+
test -e $pkgdir/opt/${_pkgupname}/chrome-sandbox && chmod 4755 $pkgdir/opt/${_pkgupname}/chrome-sandbox || true
# Exec
install -dm755 $pkgdir/usr/bin/
install -Dm755 upwork $pkgdir/usr/bin/
# Menu
install -Dm644 usr/share/applications/upwork.desktop $pkgdir/usr/share/applications/$pkgname.desktop
# Icons
for size in 16 32 48 64 128 256 512 1024; do
install -Dm644 "usr/share/icons/hicolor/${size}x${size}/apps/upwork.png" \
"${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/${pkgname}.png"
done
# License
install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
|