PKGBUILDs/aur/mt-daapd/PKGBUILD

35 lines
1.2 KiB
Bash
Raw Normal View History

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>
# Contributor: Jon Kristian Nilsen <jokr.nilsen@gmail.com>
2010-12-22 20:36:48 +00:00
# Plugbox changes: Added LDFLAGS="" to make it build
pkgname=mt-daapd
pkgver=0.2.4.2
2010-12-22 20:36:48 +00:00
pkgrel=6
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')
backup=(etc/mt-daapd/mt-daapd.conf)
depends=('libid3tag' 'gdbm' 'avahi')
2010-12-22 20:36:48 +00:00
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz \
mt-daapd)
md5sums=('67bef9fb14d487693b0dfb792c3f1b05'
'26cf6ff799ef06d262a8648d6890a250')
LDFLAGS=""
build() {
2010-12-22 20:36:48 +00:00
cd "$srcdir/$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
2010-12-22 20:36:48 +00:00
make
make DESTDIR="$pkgdir" install
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
}