1 # Contributor: Tom < reztho at archlinux dot us >
2 # Contributor: Nicolas QuiƩnot < niQo at aur >
4 pkgname=forked-daapd-git
7 pkgdesc='A rewrite of mt-daapd/Firefly Media Server'
9 url='http://git.debian.org/?p=users/jblache/forked-daapd.git'
11 makedepends=('git' 'mxml' 'antlr3')
12 depends=('confuse' 'libantlr3c' 'avahi' 'libplist' 'ffmpeg' 'taglib' 'flac' 'libevent<2.0' 'sqlite3' 'libgcrypt' 'libavl-for-forked-daapd' 'libunistring')
13 install=${pkgname}.install
14 backup=('etc/forked-daapd.conf')
15 source=('forked-daapd.rc')
16 provides=('mt-daapd' 'forked-daapd')
19 _gitroot="git://git.debian.org/users/jblache/forked-daapd.git"
20 _gitname="forked-daapd"
24 msg "Connecting to GIT server...."
26 if [ -d $_gitname ] ; then
27 cd $_gitname && git pull origin
28 msg "The local files are updated."
30 git clone $_gitroot $_gitname
33 msg "GIT checkout done or server timeout"
34 msg "Starting make..."
36 rm -rf "$srcdir/$_gitname-build"
37 git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
43 # Compiling and installing forked-daapd
44 cd "$srcdir/$_gitname-build"
45 /usr/bin/autoreconf -i
46 ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-flac --enable-musepack --enable-itunes
48 # sed -i -e 's|#include <event-config.h>|#include <event2/event-config.h>|' src/evhttp/http.c
49 # sed -i -e 's|#include <event-config.h>|#include <event2/event-config.h>|' src/evrtsp/rtsp.c
55 cd "$srcdir/$_gitname-build"
57 make DESTDIR="$pkgdir/" install
59 cd ${pkgdir} ; rmdir -p var/cache/forked-daapd ; cd -
61 install -Dm644 README ${pkgdir}/usr/share/doc/${pkgname/-git/}/README || return 1
62 install -Dm755 ${srcdir}/forked-daapd.rc ${pkgdir}/etc/rc.d/forked-daapd || return 1
65 md5sums=('04bfd583f7cd73c9c3fd166c3bc49cf6')