summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 55098cdb82e558b78f47dd59301bd4c708285fa1 (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
pkgname=desktime
pkgver=5.1.28
pkgrel=0
pkgdesc="Desktime client for Linux"
arch=('i686' 'x86_64')
url="https://desktime.com"
license=(custom)
depends=(desktop-file-utils hicolor-icon-theme libappindicator-gtk2 libxss)
install=$pkgname.install

if [[ $CARCH == 'i686' ]]; then
    source=("$pkgname-$pkgver.deb::https://desktime.com/updates/linux/update/?i386")
    md5sums=('782411c676f9faf3f276421a8e7d3269')
else
    source=("$pkgname-$pkgver.deb::https://desktime.com/updates/linux/update/?x64")
    md5sums=('63992b87ffec49537ad9226e857f5583')
fi

package()
{
    cd "$srcdir"
    bsdtar -xf data.tar.xz -C "$srcdir/"

    mkdir -p "$pkgdir"/usr
    cp -a "$srcdir/usr/lib" "$pkgdir/usr/"
    cp -a "$srcdir/usr/share" "$pkgdir/usr/"

    sudo rm -f /usr/bin/desktime-linux
    sudo ln -s "/usr/lib/desktime-linux/desktime-linux" "/usr/bin/desktime-linux"
}

# vim:et:sw=4:sts=4