Skip to content

Instantly share code, notes, and snippets.

@lenoch
Last active December 16, 2015 00:03
Show Gist options
  • Save lenoch/9ec1a8f7b84a8de88fc8 to your computer and use it in GitHub Desktop.
Save lenoch/9ec1a8f7b84a8de88fc8 to your computer and use it in GitHub Desktop.
Arch Linux 3rd party package for OSD Lyrics (upstream Git version maintained by PedroHLC)
# Generated by mksrcinfo v8
# Tue Dec 15 23:45:25 UTC 2015
pkgbase = osdlyrics-git
pkgdesc = Standalone lyrics fetcher/displayer (windowed and OSD mode). Supports MPRIS1/2 players, and MPD.
pkgver = 0.4.99.r817.3fe2571
pkgrel = 1
url = https://github.com/PedroHLC/osdlyrics
install = osdlyrics.install
arch = i686
arch = x86_64
license = GPL3
makedepends = intltool
depends = dbus-glib
depends = desktop-file-utils
depends = gtk2
depends = hicolor-icon-theme
depends = libnotify
depends = python2-dbus
depends = python2-chardet
depends = python2-gobject2
depends = python2-pycurl
depends = sqlite
optdepends = gobject-introspection-runtime: proxy detection in Gnome
optdepends = kdebindings-python2: proxy detection in KDE
optdepends = python2-mpd: to interface with MPD
provides = osdlyrics
conflicts = osdlyrics
conflicts = osdlyrics-pedrohlc
source = osdlyrics::git+git://github.com/PedroHLC/osdlyrics.git#branch=master
md5sums = SKIP
pkgname = osdlyrics-git
post_upgrade()
{
usr/bin/update-desktop-database -q
usr/bin/gtk-update-icon-cache -q -t -f usr/share/icons/hicolor
}
post_install()
{
post_upgrade
}
post_remove()
{
post_upgrade
}
# Maintainer: Ondřej Svoboda <ondrej@svobodasoft.cz>
pkgname=osdlyrics-git
provides=osdlyrics
conflicts=(osdlyrics osdlyrics-pedrohlc)
_pkgver=0.4.99
pkgver=0.4.99.r817.3fe2571
pkgrel=1
pkgdesc="Standalone lyrics fetcher/displayer (windowed and OSD mode). Supports MPRIS1/2 players, and MPD."
arch=(i686 x86_64)
url="https://github.com/PedroHLC/osdlyrics"
license=(GPL3)
depends=(dbus-glib desktop-file-utils gtk2 hicolor-icon-theme libnotify
python2-dbus python2-chardet python2-gobject2 python2-pycurl
sqlite)
makedepends=(intltool)
optdepends=('gobject-introspection-runtime: proxy detection in Gnome'
'kdebindings-python2: proxy detection in KDE'
'python2-mpd: to interface with MPD')
install=$provides.install
source=("${provides}::git+git://github.com/PedroHLC/osdlyrics.git#branch=master")
md5sums=(SKIP)
pkgver() {
cd "$srcdir/$provides"
printf "$_pkgver.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build()
{
cd "$srcdir/$provides"
./autogen.sh
./configure --prefix=/usr PYTHON=/usr/bin/python2
make
}
package()
{
cd "$srcdir/$provides"
make DESTDIR="$pkgdir" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment