2012-04-15 17:15:20 +00:00
|
|
|
# Maintainer: Peter Richard Lewis <plewis@aur.archlinux.org>
|
2011-12-11 18:44:15 +00:00
|
|
|
# Contributor: William Rea <sillywilly@gmail.com>
|
|
|
|
# Contributor: Nikhil Bysani <nikron@gmail.com>
|
|
|
|
# Contributor: Mika Hynnä <igheax@gmail.com>
|
|
|
|
# Contributor: Jonathan Conder <jonno.conder@gmail.com>
|
|
|
|
|
|
|
|
pkgname=mediatomb
|
|
|
|
pkgver=0.12.1
|
2013-08-15 12:55:12 +00:00
|
|
|
pkgrel=12.1
|
2011-12-11 18:44:15 +00:00
|
|
|
pkgdesc="Free UPnP/DLNA media server"
|
2012-04-15 17:15:20 +00:00
|
|
|
arch=('i686' 'x86_64')
|
2011-12-11 18:44:15 +00:00
|
|
|
url="http://mediatomb.cc/"
|
|
|
|
license=('GPL')
|
2013-08-15 12:55:12 +00:00
|
|
|
depends=('file' 'curl' 'ffmpegthumbnailer' 'libexif' 'libmp4v2' 'sqlite3' 'taglib' 'libmariadbclient' 'js185')
|
|
|
|
optdepends=('mariadb: to store your music database in mariadb')
|
2011-12-11 18:44:15 +00:00
|
|
|
backup=('etc/conf.d/mediatomb')
|
|
|
|
install=mediatomb.install
|
|
|
|
source=("http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz"
|
2013-08-15 12:55:12 +00:00
|
|
|
'mediatomb.service'
|
|
|
|
'mediatomb-mariadb.service'
|
2011-12-11 18:44:15 +00:00
|
|
|
'mediatomb.conf'
|
|
|
|
'gcc46.patch'
|
2012-04-15 17:15:20 +00:00
|
|
|
'tonewjs.patch'
|
|
|
|
'jsparse.patch'
|
2012-06-19 21:22:19 +00:00
|
|
|
'libav_0.7_support.patch'
|
2012-09-17 23:38:50 +00:00
|
|
|
'libmp4v2_191_p497.patch'
|
|
|
|
'libavformat.patch')
|
2013-08-15 12:55:12 +00:00
|
|
|
md5sums=('e927dd5dc52d3cfcebd8ca1af6f0d3c2'
|
|
|
|
'951b133930436a0ffc1c9b0c9f8145a3'
|
|
|
|
'27e796979c7778c3876b9a16452eb6e4'
|
|
|
|
'6503695608c811133db647e0991698eb'
|
|
|
|
'0ae34c0d73b76e3d215887834c3c08cf'
|
|
|
|
'd9e02a9956eecf5ff645bddf6dac0331'
|
|
|
|
'a7509bdaa0301ccbd9e564f727c1dd22'
|
|
|
|
'88144653ff2dc602bcb737f59b2421ce'
|
|
|
|
'915fa5b3b72649454009511a152b6102'
|
|
|
|
'932d29fbaaea6f1715bb6da456fb5f44')
|
2011-12-11 18:44:15 +00:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
patch -Np1 -i "$srcdir/gcc46.patch"
|
|
|
|
patch -Np1 -i "$srcdir/tonewjs.patch"
|
2012-04-15 17:15:20 +00:00
|
|
|
patch -Np1 -i "$srcdir/jsparse.patch"
|
2011-12-11 18:44:15 +00:00
|
|
|
patch -Np1 -i "$srcdir/libav_0.7_support.patch"
|
2012-06-19 21:22:19 +00:00
|
|
|
patch -Np1 -i "$srcdir/libmp4v2_191_p497.patch"
|
2012-09-17 23:38:50 +00:00
|
|
|
patch -Np1 -i "$srcdir/libavformat.patch"
|
2011-12-11 18:44:15 +00:00
|
|
|
|
|
|
|
./configure --prefix=/usr \
|
2012-12-03 23:27:00 +00:00
|
|
|
--enable-mysql \
|
2011-12-11 18:44:15 +00:00
|
|
|
--enable-libmagic \
|
|
|
|
--enable-libjs \
|
|
|
|
--enable-ffmpeg
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
|
|
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
|
2013-08-15 12:55:12 +00:00
|
|
|
install -D -m0755 "$srcdir/mediatomb.service" "$pkgdir/usr/lib/systemd/system/mediatomb.service"
|
|
|
|
install -D -m0755 "$srcdir/mediatomb-mariadb.service" "$pkgdir/usr/lib/systemd/system/mediatomb-mariadb.service"
|
2011-12-11 18:44:15 +00:00
|
|
|
install -D -m0755 "$srcdir/mediatomb.conf" "$pkgdir/etc/conf.d/mediatomb"
|
|
|
|
}
|