PKGBUILDs/aur/mt-daapd/PKGBUILD

54 lines
1.9 KiB
Bash
Raw Normal View History

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