aboutsummarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9d6996b83b7d1e2fe453f60e40ed50df0c1eaa96 (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
# Maintainer: Erik Bjäreholt <erik@bjareho.lt>
# Maintainer: Johan Bjäreholt <johan@bjareho.lt>

# PRs welcome at: https://github.com/ActivityWatch/aur-activitywatch-bin

pkgname=activitywatch-bin
pkgver='0.8.0b3'
pkgrel=2
epoch=
pkgdesc="Log what you do on your computer. Simple, extensible, no third parties."
arch=('x86_64')
url="https://github.com/ActivityWatch/activitywatch"
license=('MPL2')
provides=("activitywatch")
conflicts=("activitywatch")
source=("https://github.com/ActivityWatch/activitywatch/releases/download/v${pkgver}/activitywatch-v${pkgver}-linux-x86_64.zip")
md5sums=('SKIP')

package() {
    # Install into /opt/activitywatch
    mkdir -p $pkgdir/opt
    cp -r activitywatch $pkgdir/opt

    # Symlink executables to /usr/bin
    mkdir -p $pkgdir/usr/bin
    execnames=("aw-server" "aw-watcher-afk" "aw-watcher-window" "aw-qt")
    for execname in "${execnames[@]}"; do
        ln -s /opt/activitywatch/$execname $pkgdir/usr/bin/$execname
    done

    # Add .desktop file for autostart
    mkdir -p $pkgdir/etc/xdg/autostart
    cp activitywatch/aw-qt.desktop $pkgdir/etc/xdg/autostart
}