blob: 286e12d5f6d165a4f124b5b6a27b53a7af106c7a (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
# Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: 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=readymedia-transcode-git
pkgver=895.e37c92c
pkgrel=2
pkgdesc="A DLNA/UPnP-AV Media server with transcode support"
arch=('i686' 'x86_64')
url="https://bitbucket.org/stativ/readymedia-transcode"
license=('GPL2')
depends=('libexif' 'libid3tag' 'ffmpeg' 'libmagick' 'sqlite3')
makedepends=('git')
optdepends=('imagemagick: default image transcoding script')
conflicts=('minidlna' 'minidlna-transcode-hg')
provides=('minidlna' 'minidlna-transcode-hg')
replaces=('minidlna-transcode-hg')
backup=('etc/minidlna.conf'
'etc/conf.d/minidlna')
source=('readymedia-transcode::git+https://bitbucket.org/stativ/readymedia-transcode.git#branch=transcode' \
minidlna.rc tmpfiles.conf minidlna.service)
sha256sums=('SKIP'
'27a04ca6ffcecb998d832d484aa98444b649280658f1ad2db4d87ca6e5aaf0e4'
'f1a25ab74d20f080664cb3ef70ac2452c3222ab1422ccc6b9c48bc96a1f09b41'
'a5d95e1ed0b6277fd68f421f5ddc5158fbd615a10dd70c5479535ae39ec9026b')
pkgver() {
cd "$srcdir/readymedia-transcode"
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
build() {
cd "$srcdir/readymedia-transcode"
./autogen.sh
./configure --prefix=/usr --sbindir=/usr/bin
make
}
package() {
cd "$srcdir/readymedia-transcode"
make DESTDIR="$pkgdir" install
install -Dm644 minidlna.conf "$pkgdir"/etc/minidlna.conf
sed -i 's|transcode_audio_transcoder=.*|transcode_audio_transcoder=/usr/share/minidlna/transcodescripts/transcode_audio|' "$pkgdir"/etc/minidlna.conf
sed -i 's|transcode_video_transcoder=.*|transcode_video_transcoder=/usr/share/minidlna/transcodescripts/transcode_video|' "$pkgdir"/etc/minidlna.conf
sed -i 's|transcode_image_transcoder=.*|transcode_image_transcoder=/usr/share/minidlna/transcodescripts/transcode_image|' "$pkgdir"/etc/minidlna.conf
# install startup script
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
# for systemd-tmpfiles
install -Dm0644 "$srcdir"/tmpfiles.conf "$pkgdir"/usr/lib/tmpfiles.d/minidlna.conf
# systemd service file
install -Dm0644 "$srcdir"/minidlna.service "$pkgdir"/usr/lib/systemd/system/minidlna.service
}
|