PKGBUILDs/community/mt-daapd/PKGBUILD

31 lines
1.1 KiB
Bash
Raw Normal View History

2009-10-10 02:15:33 +00:00
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jon Kristian Nilsen <jokr.nilsen@gmail.com>
pkgname=mt-daapd
pkgver=0.2.4.2
pkgrel=4
pkgdesc="A multi-threaded DAAP server compatible with iTunes music sharing"
url="http://www.mt-daapd.org/"
license=("LGPL")
arch=('arm')
2009-10-10 02:15:33 +00:00
backup=(etc/mt-daapd/mt-daapd.conf)
depends=('libid3tag' 'gdbm' 'avahi')
source=(http://dl.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz \
mt-daapd)
2009-10-10 02:15:33 +00:00
md5sums=('67bef9fb14d487693b0dfb792c3f1b05'
'26cf6ff799ef06d262a8648d6890a250')
build() {
cd "$startdir/src/$pkgname-$pkgver"
sed -i 's|DEFAULT_CONFIGFILE "/etc/mt-daapd.conf"|DEFAULT_CONFIGFILE "/etc/mt-daapd/mt-daapd.conf"|' src/main.c
./configure --prefix=/usr --sysconfdir=/etc/mt-daapd --enable-avahi --enable-mdns
make || return 1
make DESTDIR="$startdir/pkg" install || return 1
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 && \
install -D -m755 $srcdir/mt-daapd $pkgdir/etc/rc.d/mt-daapd
}