# $Id: PKGBUILD 49488 2011-06-17 21:55:59Z jelle $ # Contributor: William Rea # Contributor: Nikhil Bysani # Contributor: Mika Hynnä # Maintainer: Jonathan Conder pkgname=mediatomb pkgver=0.12.1 pkgrel=4 pkgdesc="Free UPnP/DLNA media server" arch=('i686' 'x86_64' 'mips64el') url="http://mediatomb.cc/" license=('GPL') depends=('libexif' 'libmp4v2' 'taglib' 'sqlite3' 'spidermonkey' 'curl' 'ffmpegthumbnailer') backup=('etc/conf.d/mediatomb') install=mediatomb.install source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz" 'mediatomb.rc' 'mediatomb.conf' 'gcc46.patch') md5sums=('e927dd5dc52d3cfcebd8ca1af6f0d3c2' 'aa1191ec508d8bd4b3b9a5fe48efc079' 'bec297e4178332a26b42bbde873b94cd' '0ae34c0d73b76e3d215887834c3c08cf') build() { cd "$srcdir/$pkgname-$pkgver" patch -Np1 -i $srcdir/gcc46.patch ./configure --prefix=/usr \ --disable-mysql \ --enable-libmagic \ --enable-libjs \ --enable-ffmpeg make } package() { cd "$srcdir/$pkgname-$pkgver" make DESTDIR="$pkgdir/" install install -D -m0755 "$srcdir/mediatomb.rc" "$pkgdir/etc/rc.d/mediatomb" install -D -m0755 "$srcdir/mediatomb.conf" "$pkgdir/etc/conf.d/mediatomb" install -d "$pkgdir/var/lib/mediatomb" }