1 # Maintainer: Max Pray a.k.a. Synthead <synthead@gmail.com>
6 pkgdesc="A lightweight, low-dependency web interface to MPD"
8 url="http://www.ion0.com/davemp"
10 depends=('mpd' 'perl' 'perl-http-server-simple' 'perl-json-xs' 'perl-class-accessor')
11 backup=('etc/conf.d/davempd'
13 source=("http://www.ion0.com/davemp/downloads/files/$pkgname-$pkgver.tar.gz"
18 md5sums=('bef1fe4ac565b716c8838cce79572a2e'
19 '76a7b4b075be475ad850b67005e71c7c'
20 '76c01b116eac25da6e58d4940c4ff18c'
21 'a28dc6b07d046f2da943915882d8799a'
22 '83f6e590f2116a7e411560ab543f8699')
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
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"