summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a988dfdb2716b0559d73da4974f4c03387a23748 (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
# Maintainer: Daniel Wilhelm <concat(shield, wed) @ outlook.com>

pkgname=wwphone
pkgver=4.0.108
pkgrel=1
pkgdesc="A proprietary CTI and SIP client from wwcom"
arch=('x86_64')
license=('custom:"Copyright (c) 2024 by wwcom ag"')
url="https://www.wwcom.ch/"

source=("https://wwcom.ch/downloads/wwphone_${pkgver//./_}.deb")
sha256sums=('a55e90bb1c63399bae63c4c2b112dc87936062ae59e15a3d2b44e7168e863ea4')

depends=(
  "alsa-lib"
  "gtk3"
  "hidapi"
  "libappindicator-gtk3"
  "libpulse"
  "libxss"
  "openssl-1.1"
  "xdg-utils"
)

optdepends=(
  "xclip: select/copy clipboard call support"
)

package() {
  cd "${srcdir}"

  tar -xf data.tar.xz

  install -d "${pkgdir}"/opt/wwphone/certs
  install -m 0644 opt/wwphone/certs/* "${pkgdir}"/opt/wwphone/certs
  install -m 0644 opt/wwphone/Dark "${pkgdir}"/opt/wwphone/Dark
  install -m 0644 opt/wwphone/{*.wav,wwphone.png} "${pkgdir}"/opt/wwphone
  install -m 0644 opt/wwphone/libjabra.so.1.12.2.0 "${pkgdir}"/opt/wwphone/libjabra.so.1.12.2.0
  install -m 0644 opt/wwphone/libjabra.so.1 "${pkgdir}"/opt/wwphone/libjabra.so.1
  install -m 0755 opt/wwphone/wwphone "${pkgdir}"/opt/wwphone/wwphone
  install -m 0755 opt/wwphone/ctc "${pkgdir}"/opt/wwphone/ctc

  install -Dm 0644 opt/wwphone/license.txt "${pkgdir}"/usr/share/licenses/$pkgname/license.txt
  install -Dm 0755 usr/local/bin/wwphone "${pkgdir}"/usr/bin/wwphone
  install -Dm 0644 usr/share/applications/wwphone.desktop "${pkgdir}"/usr/share/applications/wwphone.desktop
  sed -e 's|/usr/local/bin|/usr/bin|' -i "${pkgdir}"/usr/share/applications/wwphone.desktop
}