diff options
author | Yurii Kolesnykov | 2023-03-17 11:57:53 +0200 |
---|---|---|
committer | Yurii Kolesnykov | 2023-03-17 11:57:53 +0200 |
commit | b35a0dec2bb915a9b44c9c46fd5a9339641fb4a8 (patch) | |
tree | 03d4b0d2a93da99921afd9a81e44c4f1d145cf73 /PKGBUILD | |
parent | dad3e8d1bca89b3b741015e70bdd810a4e4cb838 (diff) | |
download | aur-b35a0dec2bb915a9b44c9c46fd5a9339641fb4a8.tar.gz |
cleanup deps
Signed-off-by: Yurii Kolesnykov <root@yurikoles.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 27 |
1 files changed, 14 insertions, 13 deletions
@@ -7,14 +7,14 @@ pkgname=upwork _pkgname='Upwork' pkgver=5.8.0.24 _hashver='aef0dc8c37cf46a8' -pkgrel=1 +pkgrel=2 pkgdesc='Track your time for Hourly Payment Protection. Stay connected.' arch=(x86_64) url='https://www.upwork.com/ab/downloads/?os=linux' license=(custom) -depends=(alsa-lib at-spi2-core gtk3 libxss nss openssl-1.0) +depends=(alsa-lib gtk3 libxss nss) conflicts=(upwork-beta) -_useragent="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:104.0) Gecko/20100101 Firefox/104.0" +_useragent="User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:108.0) Gecko/20100101 Firefox/108.0" _rawver=${pkgver//./_} DLAGENTS=("https::/usr/bin/curl --tlsv1.3 -H ${_useragent// /\\ } %u -o %o") source=(https://upwork-usw2-desktopapp.upwork.com/binaries/v${_rawver}_${_hashver}/upwork_${pkgver}_amd64.deb @@ -28,25 +28,26 @@ prepare() { package() { # Base - install -dm755 $pkgdir/opt/${_pkgname} - cp -dr --no-preserve=ownership opt/${_pkgname}/* $pkgdir/opt/${_pkgname}/ + local _optdir="${pkgdir}"/opt/${_pkgname} + + install -dm755 "${_optdir}" + cp -dr --no-preserve=ownership opt/${_pkgname}/* "${_optdir}" # 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/${_pkgname}/chrome-sandbox && chmod 4755 $pkgdir/opt/${_pkgname}/chrome-sandbox || true + test -e "${_optdir}"/chrome-sandbox && chmod 4755 "${_optdir}"/chrome-sandbox || true # Exec - install -dm755 $pkgdir/usr/bin/ - ln -s /opt/${_pkgname}/${pkgname} $pkgdir/usr/bin/ + install -dm755 "${pkgdir}"/usr/bin/ + ln -s /opt/${_pkgname}/${pkgname} "${pkgdir}"/usr/bin/ # Menu - install -Dm644 usr/share/applications/$pkgname.desktop $pkgdir/usr/share/applications/$pkgname.desktop + install -Dm644 usr/share/applications/${pkgname}.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop # Icons - install -dm755 $pkgdir/usr/share - cp -dr --no-preserve=ownership usr/share/icons "${pkgdir}/usr/share" + install -dm755 "${pkgdir}"/usr/share + cp -dr --no-preserve=ownership usr/share/icons "${pkgdir}"/usr/share # License - install -Dm644 LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE + install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE } - |