2010-12-22 20:36:48 +00:00
|
|
|
# Maintainer : Gary Wright <wriggary at g mail dot com> $
|
|
|
|
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
|
2010-07-10 12:43:32 +00:00
|
|
|
# Contributor: Jon Kristian Nilsen <jokr.nilsen@gmail.com>
|
|
|
|
|
|
|
|
pkgname=mt-daapd
|
|
|
|
pkgver=0.2.4.2
|
2012-10-13 22:30:09 +00:00
|
|
|
pkgrel=8
|
2010-07-10 12:43:32 +00:00
|
|
|
pkgdesc="A multi-threaded DAAP server compatible with iTunes music sharing"
|
|
|
|
url="http://www.mt-daapd.org/"
|
|
|
|
license=("LGPL")
|
2010-12-22 20:36:48 +00:00
|
|
|
arch=('i686' 'x86_64')
|
2010-07-10 12:43:32 +00:00
|
|
|
backup=(etc/mt-daapd/mt-daapd.conf)
|
2012-10-13 22:30:09 +00:00
|
|
|
depends=('libid3tag' 'avahi')
|
2010-12-22 20:36:48 +00:00
|
|
|
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz \
|
2012-10-13 22:30:09 +00:00
|
|
|
mt-daapd fix-libs.patch mt-daapd.service)
|
2010-07-10 12:43:32 +00:00
|
|
|
|
|
|
|
build() {
|
2010-12-22 20:36:48 +00:00
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
2010-07-10 12:43:32 +00:00
|
|
|
|
|
|
|
sed -i 's|DEFAULT_CONFIGFILE "/etc/mt-daapd.conf"|DEFAULT_CONFIGFILE "/etc/mt-daapd/mt-daapd.conf"|' src/main.c
|
2012-04-15 16:50:35 +00:00
|
|
|
patch configure.in < "$srcdir/fix-libs.patch"
|
|
|
|
aclocal
|
|
|
|
automake --add-missing
|
|
|
|
autoreconf
|
2010-07-10 12:43:32 +00:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc/mt-daapd --enable-avahi --enable-mdns
|
2012-04-15 16:50:35 +00:00
|
|
|
make
|
2010-12-22 20:36:48 +00:00
|
|
|
make DESTDIR="$pkgdir" install
|
2010-07-10 12:43:32 +00:00
|
|
|
|
|
|
|
install -D -m644 $srcdir/$pkgname-$pkgver/contrib/mt-daapd.playlist $pkgdir/etc/mt-daapd/sample.playlist && \
|
|
|
|
install -D -m644 $srcdir/$pkgname-$pkgver/contrib/mt-daapd.conf $pkgdir/etc/mt-daapd/mt-daapd.conf && \
|
2012-10-13 22:30:09 +00:00
|
|
|
install -D -m755 $srcdir/mt-daapd $pkgdir/etc/rc.d/mt-daapd && \
|
|
|
|
install -D -m644 $srcdir/mt-daapd.service $pkgdir/usr/lib/systemd/system/mt-daapd.service
|
2010-07-10 12:43:32 +00:00
|
|
|
}
|
2012-04-15 16:50:35 +00:00
|
|
|
md5sums=('67bef9fb14d487693b0dfb792c3f1b05'
|
|
|
|
'26cf6ff799ef06d262a8648d6890a250'
|
2012-10-13 22:30:09 +00:00
|
|
|
'59896e760486a51170d8b0e7ed5a2506'
|
|
|
|
'e4fe850008da5206286c3ced6384ac4c')
|