blob: fb8e81905aec735a5680de8d2da152873ff22ae6 (
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
|
# This PKGBUILD is part of the VDR4Arch project [https://github.com/vdr4arch]
# Maintainer: Christopher Reimer <mail+vdr4arch[at]c-reimer[dot]de>
pkgname=vdr-upnp
pkgver=1.0.0.r14.g11a035a
_gitver=11a035aa4ec2b55faaef1eaa48b7726a28422048
_vdrapi=2.4.1
pkgrel=3
pkgdesc="extends the VDR with the possibility to act as an UPnP/DLNA Media Server (DMS)"
url='https://github.com/vdr-projects/vdr-plugin-upnp'
arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h')
license=('GPL2')
depends=('libupnp' 'tntdb' 'tntnet' "vdr-api=${_vdrapi}")
makedepends=('boost' 'git')
_plugname=${pkgname//vdr-/}
source=("git+https://github.com/vdr-projects/vdr-plugin-${_plugname}.git#commit=${_gitver}"
'upnp-vdr2.1.2compat.diff'
"50-$_plugname.conf")
backup=("etc/vdr/conf.avail/50-$_plugname.conf"
'var/lib/vdr/plugins/upnp/channelTitle.conf')
md5sums=('SKIP'
'9aa486e95f113ac1791d5faffde27f5e'
'145e9e822d1d734c4dcb294db4bb88d4')
pkgver() {
cd "${srcdir}/vdr-plugin-${_plugname}"
_last_release=1.0.0
_last_release_commit=529f178bd15a361baf1e83837b1e872be14795a6
_count=$((`git rev-list --count HEAD` - `git rev-list --count $_last_release_commit`))
if [ $_count -gt 0 ]; then
printf "%s.r%s.g%s" $_last_release \
$_count \
`git rev-parse --short=7 HEAD`
else
printf "%s" $_last_release
fi
}
prepare() {
cd "${srcdir}/vdr-plugin-${_plugname}"
patch -p1 -i "$srcdir/upnp-vdr2.1.2compat.diff"
}
build() {
cd "${srcdir}/vdr-plugin-${_plugname}"
make
}
package() {
cd "${srcdir}/vdr-plugin-${_plugname}"
make DESTDIR="${pkgdir}" install
install -Dm644 "$srcdir/50-$_plugname.conf" "$pkgdir/etc/vdr/conf.avail/50-$_plugname.conf"
chown -R 666:666 "$pkgdir/var/lib/vdr"
}
|