summaryrefslogtreecommitdiff
path: root/community/mpdscribble/PKGBUILD
blob: 254c0ac0540b757ab4a1793678ab3a223a72281b (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
# Maintainer: Thomas Dziedzic < gostrc at gmail >
# Contributor: evr <evanroman at gmail>
# Contributor: Luiz Ribeiro <luizribeiro@gmail.com>

pkgname=mpdscribble
pkgver=0.21
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="${pkgname}.install"
source=("http://downloads.sourceforge.net/musicpd/mpdscribble-${pkgver}.tar.bz2"
        'mpdscribble')
md5sums=('3dc96f9179b8d7efd02cbbceb345e529'
         'f54c937c7b3ab8e4d39e4b903c2993fc')

build() {
  cd ${pkgname}-${pkgver}

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

  make
}

package() {
  cd ${pkgname}-${pkgver}

  make DESTDIR=${pkgdir} install

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

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

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