summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1578332154db8daa76b87a11e0478fa95663a2e2 (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
# Maintainer: Ondřej Svoboda <ondrej@svobodasoft.cz>
pkgname=osdlyrics-git
provides=(osdlyrics)
conflicts=(osdlyrics osdlyrics-pedrohlc)
pkgver=0.5.15
pkgrel=1
pkgdesc="Standalone lyrics fetcher/displayer (windowed and OSD mode). Supports MPRIS1/2 players, and MPD."
arch=(i686 x86_64 arm64)
url="https://github.com/osdlyrics/osdlyrics"
license=(GPL3)
depends=(dbus-glib desktop-file-utils gtk2 hicolor-icon-theme libnotify
         python-{dbus,chardet,gobject,pycurl}
         sqlite libappindicator-gtk2)
makedepends=(intltool git)
optdepends=('gobject-introspection-runtime: proxy detection in Gnome'
            'python-mpd2: to interface with MPD')
install=$provides.install
source=("${provides}::git+https://github.com/osdlyrics/osdlyrics.git#branch=master")
md5sums=(SKIP)

pkgver() {
    cd "$srcdir/$provides"
    ./check-version.sh | sed 's/-g/.g/g;s/-/.r/g'
}

build()
{
    cd "$srcdir/$provides"
    ./autogen.sh
    ./configure \
        --prefix=/usr PYTHON=/usr/bin/python \
        --enable-appindicator=yes
    make
}

package()
{
    cd "$srcdir/$provides"
    make DESTDIR="$pkgdir" install
}