summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 098d38f057652d83db54f60bc39a5187f8e98908 (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
# Maintainer: Jaime Martínez Rincón <jaime@jamezrin.name> https://github.com/jamezrin
# Maintainer: Fabio 'Lolix' Loli <lolix@disroot.org> -> https://github.com/FabioLolix

pkgname=toptracker
_pkgver=1.6.0-334
pkgver=${_pkgver//-/.}
pkgrel=2.1
pkgdesc="Time tracking software for remote teams and individuals"
arch=(x86_64)
url="https://www.toptal.com/tracker/"
license=(custom:toptracker)
depends=(qt5-svg qt5-multimedia libxss gtk3 libappindicator-gtk2)
source=("https://d101nvfmxunqnl.cloudfront.net/desktop/builds/redhat/${pkgname}_${_pkgver}_x86_64.rpm"
        'toptracker.desktop'
        'toptracker-LICENSE'
        'toptracker-launcher')
noextract=("${pkgname}_${_pkgver}_x86_64.rpm")
sha256sums=('212f82bc574c741b1c8837ae5d06b2999d15d6c431ef8d41cf096653d877b95c'
            'e65278708e76a1e3772ccdecb1710d59a492a88ee6c3fde87296cccaec79b9cd'
            '3a12e2c5bd4c992b24320e1e2552476f21d08229417ca298cb39a2512f36162e'
            'daed1bd315d68a2755e6f13126482eef18c361306c62cb6219be6c39ee64af34')

package() {
  install -d "${pkgdir}/usr/bin"
  install -d "${pkgdir}/opt/${pkgname}"
  install -d "${pkgdir}/usr/share/applications"
  install -d "${pkgdir}/usr/share/icons"

  bsdtar -xf ${srcdir}/${pkgname}_${_pkgver}_x86_64.rpm -C ${pkgdir}/
  rm -r ${pkgdir}/etc/yum.repos.d
  rm ${pkgdir}/etc/cron.daily/toptracker.cron
  rm ${pkgdir}/usr/share/applications/toptracker.desktop
  unlink ${pkgdir}/usr/bin/toptracker

  cp ${pkgdir}/opt/toptracker/icon.png ${pkgdir}/usr/share/icons/${pkgname}.png
  install -Dm755 ${srcdir}/${pkgname}-launcher ${pkgdir}/usr/bin/toptracker
  install -Dm755 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications
  install -Dm644 ${srcdir}/${pkgname}-LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}