summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6ebf96e11d28ba4ac366c38a78f094be01595805 (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
# Maintainer: Michael Herold <arch@michaeljherold.com>
# Contributor: Rasmus Steinke <rasi at xssn dot at>
# Contributor: Rafael Bodill <justrafi[at]gmail[dot]com>

pkgname=mpdcron-git
_gitname=mpdcron
pkgver=v0.3.55.ge49e604
pkgrel=1
pkgdesc="A 'cron' like program for mpd. It can execute scripts based on mpd's idle events"
arch=('i686' 'x86_64')
url="http://alip.github.io/mpdcron/"
license=('GPL')
provides=('mpdcron' 'eugene' 'homescrape' 'walrus')
depends=('libmpdclient>=2.1' 'libdaemon' 'glib2' 'curl' 'sqlite3')
makedepends=('git' 'gcc' 'make' 'autoconf')
options=('!libtool')
source=('git+git://github.com/alip/mpdcron.git')
md5sums=('SKIP')

pkgver() {
  cd "$srcdir/$_gitname"
  git describe --tags | sed 's/-/./g'
}

build() {
  cd "$_gitname"
  ./autogen.sh
  ./configure --prefix=/usr --enable-gmodule --with-standard-modules=all
}

package() {
  cd "$_gitname"
  make DESTDIR="$pkgdir" install
}