summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0d112191ef392b86f5d9649d289bd9136fd02a63 (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.30
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=('124d4dc0bfc27dd12c1f7bdd01c842e1')
else
    source=("$pkgname-$pkgver.deb::https://desktime.com/updates/linux/update/?x64")
    md5sums=('4521ce6d95e24af9377109252a12334a')
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