Skip to content

Instantly share code, notes, and snippets.

@lenoch
Last active December 12, 2015 08:17
Show Gist options
  • Save lenoch/145c9205fae772044478 to your computer and use it in GitHub Desktop.
Save lenoch/145c9205fae772044478 to your computer and use it in GitHub Desktop.
Arch Linux 3rd party package for OSD Lyrics (for running 'makepkg -p PKGBUILD' straight in a development directory)
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
}
pkgname=osdlyrics-wip
provides=osdlyrics
conflicts=('osdlyrics' 'osdlyrics-pedrohlc' 'osdlyrics-git')
_pkgver=0.4.99
pkgver=$_pkgver
pkgrel=1
pkgdesc="A lyric show compatible with various media players + experimental ViewLyrics source + bug fixes"
arch=('i686' 'x86_64')
url="http://code.google.com/p/osd-lyrics/"
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 on Gnome'
'kdebindings-python2: proxy detection on KDE'
'python2-mpd: to interface with MPD')
install=$provides.install
pkgver() {
cd ..
printf "$_pkgver.r%s" "$(git rev-list --count HEAD)"
}
build()
{
cd ..
./autogen.sh
./configure --prefix=/usr PYTHON=/usr/bin/python2
make
}
package()
{
cd ..
make DESTDIR="$pkgdir" install
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment