desktop/lastfmsubmitd/PKGBUILD

50 lines
1.7 KiB
Bash
Raw Normal View History

#
# Chakra Packages for Chakra, part of chakra-project.org
#
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
# include global config
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=lastfmsubmitd
pkgver=1.0.6
pkgrel=2
pkgdesc="A Last.fm 'plugin' client for MPD, implemented in Python."
arch=(i686 x86_64)
url="http://www.red-bean.com/~decklin/software/lastfmsubmitd/"
license=('MIT')
depends=('python-mpdclient2')
makedepends=('python')
optdepends=('mpd: For local audio playback')
backup=( etc/lastfmsubmitd.conf )
install=lastfmsubmitd.install
source=(http://www.red-bean.com/~decklin/software/$pkgname/$pkgname-$pkgver.tar.gz
lastmp
lastfmsubmitd
lastmp.conf
lastfmsubmitd.conf)
md5sums=('eadf6f8a7c3a5f8b6311a6fae5c117f6'
'b8b51b54deea837250fba411f0983bda'
'49559328f9e53eb840dcf0364afec818'
'f331cb1fca46eb0b91be269babe49224'
'b3682da7c8a733b14c93dd6f5eb8d1c2')
build() {
cd $srcdir/$pkgname-$pkgver
mkdir -p $pkgdir/usr
/usr/bin/python setup.py install --prefix=$pkgdir/usr
install -D -m 755 ../lastfmsubmitd.conf $pkgdir/etc/lastfmsubmitd.conf
install -D -m 600 ../lastmp.conf $pkgdir/etc/lastmp.conf
install -D -m 755 ../lastfmsubmitd $pkgdir/etc/rc.d/lastfmsubmitd
install -D -m 755 ../lastmp $pkgdir/etc/rc.d/lastmp
install -D -m 755 contrib/lastmp $pkgdir/usr/bin/lastmp
install -d -g audio -m 775 $pkgdir/var/log/lastfm
install -d -g audio -m 775 $pkgdir/var/run/lastfm
install -d -g audio -m 775 $pkgdir/var/spool/lastfm
install -d -g audio -m 775 $pkgdir/var/cache/lastfm
install -D -m644 README $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
# vim:set ts=2 sw=2 et: