summaryrefslogtreecommitdiff
path: root/community/mpdscribble/PKGBUILD
blob: a6f4aa03266dd376e7e5d1192de3c20145c0e201 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# $Id: PKGBUILD 74713 2012-08-02 09:37:39Z bpiotrowski $
# Maintainer:  Bartłomiej Piotrowski <nospam@bpiotrowwski.pl>
# Contributor: Thomas Dziedzic < gostrc at gmail >
# Contributor: evr <evanroman at gmail>
# Contributor: Luiz Ribeiro <luizribeiro@gmail.com>

pkgname=mpdscribble
pkgver=0.22
pkgrel=4
pkgdesc='An mpd client which submits track info to last.fm'
url='http://mpd.wikia.com/wiki/Client:Mpdscribble'
arch=('i686' 'x86_64')
license=('GPL')
depends=('libsoup' 'glib2' 'libmpdclient')
install='mpdscribble.install'
source=(http://downloads.sourceforge.net/musicpd/mpdscribble-${pkgver}.tar.bz2
        rc.d service)
md5sums=('652ee927b797e9a4cef45494e77047db'
         'f54c937c7b3ab8e4d39e4b903c2993fc'
         '7e0a80c12225b0fe7be9c993f0079e95')

build() {
  cd mpdscribble-${pkgver}

  ./configure \
    --prefix=/usr \
    --sysconfdir=/etc \
    --with-http-client=soup

  make
}

package() {
  cd mpdscribble-${pkgver}

  make DESTDIR="${pkgdir}" install

  install -D "${srcdir}"/rc.d \
    "${pkgdir}"/etc/rc.d/mpdscribble

  install -D "${srcdir}"/service \
    "${pkgdir}"/usr/lib/systemd/system/mpdscribble.service

  # default config is really an example
  install -D -m644 "${pkgdir}"/etc/mpdscribble.conf \
    "${pkgdir}"/usr/share/mpdscribble/mpdscribble.conf.example
  rm -f "${pkgdir}"/etc/mpdscribble.conf

  install -d "${pkgdir}"/var/cache/mpdscribble
  touch "${pkgdir}"/var/cache/mpdscribble/mpdscribble.cache
}