1 # Contributor: Markus Cisler <bl1nk@tlen.pl>
5 pkgdesc="An AudioScrobbler client for MPD written in C++."
9 depends=('libmpd' 'curl')
10 backup=('etc/mpdasrc')
12 source=("http://50hz.ws/$pkgname/$pkgname-$pkgver.tar.bz2" "mpdas.rc")
13 md5sums=('ea852645079be1aeedfe3e88f421917e'
14 'fdaa50e353ed0a41b93f72f60f68327d')
17 cd ${srcdir}/${pkgname}-${pkgver}
18 # Fix the paths for installation
19 sed -i -e 's|/usr/local|/usr|' -e 's|$(PREFIX)/etc|/etc|' -e 's|install -m 644|install -Dvm644|' -e 's|install mpdas ${PREFIX}/bin|install -Dvm755 mpdas ${PREFIX}/bin/mpdas|' Makefile
21 make install PREFIX=${pkgdir}/usr MANPREFIX=${pkgdir}/usr/share || return 1
22 install -Dvm755 ${startdir}/mpdas.rc ${pkgdir}/etc/rc.d/mpdas
23 install -vm644 mpdasrc.example ${pkgdir}/etc/mpdasrc