6 pkgdesc="A video disk recorder"
7 url="ftp://ftp.tvdr.de/vdr/Developer/"
10 depends=('fontconfig' 'gettext' 'libjpeg' 'perl')
11 optdepends=('lirc: To use a remote control'
12 'runvdr-extreme: An alternative runvdr script'
13 'vdrsymbols-ttf: Symbols that some VDR plugins and patches use')
14 backup=('etc/vdr/channels.conf'
16 'etc/vdr/keymacros.conf'
17 'etc/vdr/sources.conf'
18 'etc/vdr/svdrphosts.conf')
20 install=('vdr.install')
21 source=(ftp://ftp.tvdr.de/vdr/Developer/vdr-$pkgver.tar.bz2
22 # http://copperhead.htpc-forum.de/downloads/extensionpatch/extpngvdr${pkgver}v1.diff.gz
30 cd $srcdir/vdr-$pkgver
31 # zcat ../extpngvdr${pkgver}v1.diff.gz > ../patch
32 # patch -p1 -i ../patch
33 # Update lirc socket location in man page
34 sed -i "s|/dev/lircd|/var/run/lirc/lircd|g" vdr.1
36 # Don't install runvdr
37 sed -i "s|runvdr ||g" Makefile
39 # VDR directory environment (Make.config):
40 # MANDIR = /usr/share/man
42 # LOCDIR = /usr/share/locale
43 # PLUGINLIBDIR = /usr/lib/vdr
44 # VIDEODIR = /var/spool/video
49 install -d -m755 "${pkgdir}/etc/rc.d"
50 install -d -m755 "${pkgdir}/usr/bin"
51 install -d -m755 "${pkgdir}/usr/include/vdr/include"
52 install -d -m755 "${pkgdir}/usr/include/vdr/libsi"
53 install -d -m755 "${pkgdir}/usr/share/doc/${pkgname}"
55 # cp ${srcdir}/Make.config Make.config
58 make DESTDIR="${pkgdir}" install
62 # Install vdr header files
63 install -m644 *.h "${pkgdir}/usr/include/vdr"
64 install -m644 libsi/*.h "${pkgdir}/usr/include/vdr/libsi"
65 ln -sf .. "${pkgdir}/usr/include/vdr/include/vdr"
66 ln -sf ../libsi "${pkgdir}/usr/include/vdr/include/libsi"
68 # Install daemon and shutdown scripts
69 install -m755 "${srcdir}/rc-runvdr" "${pkgdir}/etc/rc.d/runvdr"
70 install -m755 "${srcdir}/vdr-shutdown.sh" "${pkgdir}/usr/bin/vdr-shutdown.sh"
71 install -m755 "${srcdir}/vdr-$pkgver/vdr" "${pkgdir}/usr/bin/runvdr"
73 cp runvdr.template runvdr
74 for _document in channels.conf* *.template CONTRIBUTORS HISTORY INSTALL MANUAL PLUGINS.html README* runvdr UPDATE*; do
75 install -m644 ${_document} "${pkgdir}/usr/share/doc/${pkgname}"
80 md5sums=('7300bfd997db1a848bd774fefe4aec80'
81 '1cfad701ae8bdc67b9ba9f2c290b1116'
82 'dc40bfb16e2ecd9c69043d754b401bfa'
83 '6426eac608143bacbf7233c15af86193'
84 '986eeed40bd76d9d0f07b4157a60ac50')
85 md5sums=('b9c0fe1aac8e653c0d0234bc72c2bb2c'
86 'dc40bfb16e2ecd9c69043d754b401bfa'
87 '6426eac608143bacbf7233c15af86193'
88 '986eeed40bd76d9d0f07b4157a60ac50')