blob: e37ddd6d54127c4d9b39f7da528538157a7e1058 (
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
52
53
|
# Maintainer: Oliver Wegner <oliver.wegner(at)csr-informatik(dot)de>
pkgname=sipgate-app-clinq
pkgdesc="Telephony desktop application for sipgate customers"
pkgver=2.30.1
_distfile="sipgate-${pkgver}-amd64.deb"
pkgrel=1
arch=('x86_64')
url="https://sipgate.de/app"
license=('LicenseRef-custom')
depends=()
makedepends=('dpkg')
provides=('sipgate-app-clinq')
options=('!debug')
source=(
"https://desktop.download.sipgate.com/${_distfile}"
"run-sipgate-desktop.sh"
)
noextract=("${_distfile}")
b2sums=(
'47d56229aa686927872e259e0c6a9f2dba326ef504c8daccb9cc6186799df19c92a0812e57a8993d8fe6e035f569519452706974a10200b9a0ecc438cbe25a60'
'16f877664cb574917a7c5f6d310523e0dda7b00c162621410fc81de94e85f2a6699749210c931b7269b1063d434c41da44c5ee96cbb0eb621420746a76723830'
)
pkgver() {
# shellcheck disable=SC2016
dpkg-deb --show --showformat='${Version}' "${_distfile}" | tr - .
}
package() {
depends=(
'gtk3' 'libsecret' 'util-linux-libs' 'at-spi2-core' 'xdg-utils'
'libxtst' 'libxss' 'nss' 'libnotify' 'alsa-lib'
'sed' 'yq' 'wget' 'libnotify' 'pacman'
)
# extract original distfile
bsdtar -O -xf "${_distfile}" data.tar.xz | bsdtar -C "${pkgdir}" -xJf -
# move LICENSE files to intended location
install -dm755 "${pkgdir}/usr/share/licenses/${pkgname}"
mv "${pkgdir}/opt/sipgate/LICENSE.electron.txt" \
"${pkgdir}/usr/share/licenses/${pkgname}/"
mv "${pkgdir}/opt/sipgate/LICENSES.chromium.html" \
"${pkgdir}/usr/share/licenses/${pkgname}/"
# copy run script
install -dm755 "${pkgdir}/usr/bin"
install -Dm755 "run-sipgate-desktop.sh" \
"${pkgdir}/opt/sipgate/run-sipgate-desktop.sh"
ln -s "/opt/sipgate/run-sipgate-desktop.sh" \
"${pkgdir}/usr/bin/sipgate-desktop"
}
|