summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d5d055491bae08d92e896e47d3d1b7fbc6062db0 (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
# PKGBUILD for pomodorino

# Maintainer: Göktuğ Kayaalp <self at gkayaalp dot com>

# _NOTE FOR GNOME 3 / 40_: by default, Gnome does not support
# AppIndicators, i.e. system tray icons.  Because Pomodorino's main
# interface currently is an AyatanaAppIndicator and it's associated
# menu.
#
# In order to mitigate this, you can install the optional dependency
# `gnome-shell-extension-appindicator`, run the following command
#
#     $ gnome-extensions enable appindicatorsupport@rgcjonas.gmail.com
#
# and finally log out and log back in to get Gnome to display the
# indicators.

pkgname=pomodorino
pkgver=0.2.0a1
pkgrel=3
pkgdesc="a lightweight, simple Pomodoro timer system tray app"
arch=('any')
url=https://github.com/cadadr/pomodorino
license=('GPL')
depends=('python-gobject' 'python-notify2' 'dbus-python'
    'libindicator-gtk3' 'libappindicator-gtk3')
optdepends=('gnome-shell-extension-appindicator: show tray icon on Gnome')
makedepends=('python-setuptools' 'pandoc' 'gettext')

source=("$pkgname-$pkgver.tar.gz::https://github.com/cadadr/pomodorino/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('fb3ace34b005c1427bf6577ae70606121af1cc8c75bf6b6244b3a71a4d6ed512')

build() {
    cd "$pkgname-$pkgver/"
    python setup.py build
}

package() {
    cd "$pkgname-$pkgver/"
    # helps .pyc reproducibility
    export PYTHONHASHSEED=0
    python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}