updated on Sun Jan 15 08:01:04 UTC 2012
[aur-mirror.git] / forked-daapd-git / PKGBUILD
blob690094692a03149a3992327fb9473658c1288534
1 # Contributor: Tom < reztho at archlinux dot us >
2 # Contributor: Nicolas QuiĆ©not < niQo at aur > 
4 pkgname=forked-daapd-git
5 pkgver=20110327
6 pkgrel=1
7 pkgdesc='A rewrite of mt-daapd/Firefly Media Server'
8 arch=('i686' 'x86_64')
9 url='http://git.debian.org/?p=users/jblache/forked-daapd.git'
10 license=('GPL')
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')
17 options=('!libtool')
19 _gitroot="git://git.debian.org/users/jblache/forked-daapd.git"
20 _gitname="forked-daapd"
22 build() {
23   cd "$srcdir"
24   msg "Connecting to GIT server...."
26   if [ -d $_gitname ] ; then
27     cd $_gitname && git pull origin
28     msg "The local files are updated."
29   else
30     git clone $_gitroot $_gitname
31   fi
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"
39   #
40   # BUILD HERE
41   #
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
51   make || return 1
54 package() {
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')