updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / vdr-devel / PKGBUILD
blob09fae82f2dcc2f6307fe86878c0650b6f7cfa51d
1 # Contributor: M0Rf30
2 pkgname=vdr-devel
3 pkgver=1.7.23
4 pkgrel=1
5 arch=(i686 x86_64)
6 pkgdesc="A video disk recorder"
7 url="ftp://ftp.tvdr.de/vdr/Developer/"
8 provides='vdr'
9 license=('GPL')
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'
15         'etc/vdr/diseqc.conf'
16         'etc/vdr/keymacros.conf'
17         'etc/vdr/sources.conf'
18         'etc/vdr/svdrphosts.conf')
19 options=(!emptydirs)
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
23         rc-runvdr
24         vdr-shutdown.sh
25         Make.config)
28 build() {
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
41   # BINDIR       = /usr/bin
42   # LOCDIR       = /usr/share/locale
43   # PLUGINLIBDIR = /usr/lib/vdr
44   # VIDEODIR     = /var/spool/video
45   # CONFDIR      = /etc/vdr
46   # Also:
47   # VDR_USER = vdr
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
57   make
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"
72 # Install documents
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}"
76   done
77     
81 md5sums=('de136f7be28c4b6f1fa0e2218b4acc11'
82          'dc40bfb16e2ecd9c69043d754b401bfa'
83          '6426eac608143bacbf7233c15af86193'
84          '986eeed40bd76d9d0f07b4157a60ac50')