blob: c512a69082377a3efeb31f944bf167764d79fb8a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# $Id: PKGBUILD 73806 2012-07-15 20:17:53Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer:Biginoz < biginoz AT free point fr>
# Contributor: Ignacio Galmarino <igalmarino@gmail.com>
# Contributor: Matthias Sobczyk <matthias.sobczyk@googlemail.com>
# Contributor: Kamil Kaminski <kyle@kkaminsk.com>
pkgname=minidlna
pkgver=1.0.25
pkgrel=1
pkgdesc="A DLNA/UPnP-AV Media server (aka ReadyDLNA)"
arch=('i686' 'x86_64')
url="http://sourceforge.net/projects/minidlna/"
license=('GPL')
depends=('libexif' 'libjpeg' 'libid3tag' 'flac' 'libvorbis' 'ffmpeg' 'sqlite')
conflicts=('minidlna-cvs')
backup=('etc/minidlna.conf'
'etc/conf.d/minidlna')
changelog=changelog
source=(http://downloads.sourceforge.net/minidlna/minidlna_${pkgver}_src.tar.gz
minidlna.rc
minidlna.conf
minidlna.service)
md5sums=('d966256baf2f9b068b9de871ab5dade5'
'c9863d5703e0a8469cc200f2739567e7'
'af1b8c0fef9902f797b0324c255da5a1'
'1903ed9ceee43b8bb86146b9ad8eb50c')
build() {
cd "$srcdir/$pkgname-$pkgver"
sed -i 's|DB_PATH=.*|DB_PATH=/var/cache/minidlna|' genconfig.sh
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
DESTDIR=$pkgdir make install
install -Dm644 minidlna.conf ${pkgdir}/etc/minidlna.conf
install -Dm755 ${srcdir}/minidlna.rc ${pkgdir}/etc/rc.d/minidlna
mkdir -p $pkgdir/etc/conf.d
echo 'MINIDLNA_USER=nobody' >$pkgdir/etc/conf.d/minidlna
echo 'MINIDLNA_OPTS=""' >>$pkgdir/etc/conf.d/minidlna
# systemd files
install -Dm0644 $srcdir/minidlna.conf $pkgdir/usr/lib/tmpfiles.d/minidlna.conf
install -Dm0644 $srcdir/minidlna.service $pkgdir/usr/lib/systemd/system/minidlna.service
}
|