summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 31f3f3b14221e29bfc5962f9f9d90369483546c5 (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
# Maintainer: X0rg
# Contributor: Hugo Osvaldo Barrera <hugo@barrera.io>

_realname=lLyrics
pkgname=rhythmbox-llyrics
pkgver=1.2
pkgrel=1
pkgdesc="A Rhythmbox plugin for displaying lyrics in the sidebar"
arch=('any')
url="https://github.com/dmo60/lLyrics"
license=('GPL2')
makedepends=('git')
depends=('rhythmbox>=3.0' 'python-chardet' 'python-lxml')
source=("$_realname-$pkgver.tar.gz::https://github.com/dmo60/lLyrics/archive/v$pkgver.tar.gz")
sha512sums=('304dbb41bee5383cf62b75d2205ec5c5c2fb39ba7e91f858d0556ff5f75daf71590a9c3420c1ca69cef62c6ad1eefdd89341fe308afb4babab03b58f9a5b9943')

prepare() {
	cd "$srcdir/$_realname-$pkgver"
	sed -i 's|sudo||g'               "Makefile"
	sed -i 's|lib64|lib|g'           "Makefile"
	sed -i 's|/usr|$(PREFIX)/usr|g'  "Makefile"
	sed -i '/glib-compile-schemas/d' "Makefile"
}

package() {
	cd "$srcdir/$_realname-$pkgver"
	mkdir -p "$pkgdir/usr/lib/rhythmbox/plugins/"
	mkdir -p "$pkgdir/usr/share/glib-2.0/schemas/"
	make PREFIX="$pkgdir" install-systemwide
}