summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1a6772500ec10cbabbd7bffe93f5e2b10f4693d8 (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
# Maintainer: buzz
# Contributor: dude <brrtsm-AT-gmail-DOT-com>
pkgname=twitch-indicator
pkgver=1.7
pkgrel=1
pkgdesc="Twitch indicator for Linux. Tracks your followed channels and notifies when they go live."
arch=("any")
url="https://github.com/buzz/twitch-indicator"
license=("GPL")
depends=("python-aiofiles" "python-aiohttp" "python-gobject" "python" "xapp")
makedepends=("desktop-file-utils" "git" "python-build" "python-installer" "python-hatch")
options=(!emptydirs)
source=("git+https://github.com/buzz/twitch-indicator.git#tag=${pkgver}")
md5sums=("SKIP")

build() {
    cd "${pkgname}"
    python -m build --wheel --no-isolation
}

package() {
    cd "${pkgname}"
    python -m installer --destdir="${pkgdir}" dist/*.whl
    install -Dm644 data/twitch-indicator.desktop "${pkgdir}/usr/share/applications/twitch-indicator.desktop"
    install -Dm644 data/apps.twitch-indicator.gschema.xml "${pkgdir}/usr/share/glib-2.0/schemas/apps.twitch-indicator.gschema.xml"
    install -Dm644 twitch_indicator/data/twitch-indicator.svg "${pkgdir}/usr/share/icons/twitch-indicator.svg"
}

# vim:set ts=2 sw=2 et: