updated on Fri Jan 20 04:00:45 UTC 2012
[aur-mirror.git] / davemp / PKGBUILD
blob073aebf213aa0f3ff1d315d2a25af2dddde4d3ab
1 # Maintainer: Max Pray a.k.a. Synthead <synthead@gmail.com>
3 pkgname=davemp
4 pkgver=1.23
5 pkgrel=3
6 pkgdesc="A lightweight, low-dependency web interface to MPD"
7 arch=('any')
8 url="http://www.ion0.com/davemp"
9 license=('CCPL' 'MIT')
10 depends=('mpd' 'perl' 'perl-http-server-simple' 'perl-json-xs' 'perl-class-accessor')
11 backup=('etc/conf.d/davempd'
12         'etc/davemp.conf')
13 source=("http://www.ion0.com/davemp/downloads/files/$pkgname-$pkgver.tar.gz"
14         'encode-json.patch'
15         'davempd'
16         'davempd.confd'
17         'LICENSE')
18 md5sums=('bef1fe4ac565b716c8838cce79572a2e'
19          '76a7b4b075be475ad850b67005e71c7c'
20          '76c01b116eac25da6e58d4940c4ff18c'
21          'a28dc6b07d046f2da943915882d8799a'
22          '83f6e590f2116a7e411560ab543f8699')
24 build() {
25         cd "$srcdir/$pkgname-$pkgver"
26         patch -p0 < "$srcdir/encode-json.patch"
27         sed -i "s%\(use lib '\)\./lib\('\;\)%\1/usr/lib/$pkgname\2%" davempd.pl
28         sed -i "s%\(themeroot = \)\./themes%\1/usr/share/$pkgname/themes%" davemp.conf
31 package()       {
32         cd "$srcdir/$pkgname-$pkgver"
33         mkdir -p "$pkgdir/usr"/{"share/$pkgname",lib}
34         cp -R themes "$pkgdir/usr/share/$pkgname"
35         cp -R lib "$pkgdir/usr/lib/$pkgname"
37         install -Dm 755 davempd.pl "$pkgdir/usr/bin/davempd.pl"
38         install -Dm 644 davemp.conf "$pkgdir/etc/davemp.conf"
39         install -Dm 755 "$srcdir/davempd" "$pkgdir/etc/rc.d/davempd"
40         install -Dm 644 "$srcdir/davempd.confd" "$pkgdir/etc/conf.d/davempd"
41         install -Dm 644 "$srcdir/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"