updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / vdr-radio / PKGBUILD
blob4789e6d3803fb5d323fed992b8bb4efd7cd091eb
1 # Contributor: David Spicer <azleifel at googlemail dot com>
3 pkgname=vdr-radio
4 _pluginname=radio
5 pkgver=0.2.5
6 pkgrel=1
7 arch=('i686' 'x86_64')
8 pkgdesc="A VDR plugin that displays a background image for radio channels"
9 url="http://www.linuxtv.org/vdrwiki/index.php/Radio-plugin"
10 license=('GPL2')
11 depends=('vdr')
12 install=${pkgname}.install
13 source=(http://www.egal-vdr.de/plugins/${pkgname}-${pkgver}.tgz
14         vdr-radio-0.2.5-glibc-2.10.diff)
15 md5sums=('71d56ca88d3e78338c12fa72d5c30c4f'
16          '73650e5e0d69e4da2d3a46a00bb412ad')
18 build() {
19   cd ${srcdir}/${_pluginname}-${pkgver}
21   patch -Np1 -i ${startdir}/vdr-radio-0.2.5-glibc-2.10.diff || return 1
23   # Assumed VDR directory environment (VDRDIR/Make.config):
24   # MANDIR       = /usr/share/man
25   # BINDIR       = /usr/bin
26   # LOCDIR       = /usr/share/locale
27   # PLUGINLIBDIR = /usr/lib/vdr
28   # VIDEODIR     = /var/spool/video
29   # CONFDIR      = /etc/vdr
30   
31   install -d -m755 ${pkgdir}/etc/vdr/plugins/${_pluginname} || return 1
32   install -d -m755 ${pkgdir}/usr/lib/vdr || return 1
33   install -d -m755 ${pkgdir}/usr/share/doc/${pkgname} || return 1
34   install -d -m755 ${pkgdir}/usr/share/locale || return 1
35   
36   make VDRDIR=/usr/include/vdr \
37        LIBDIR=${pkgdir}/usr/lib/vdr \
38        LOCALEDIR=${pkgdir}/usr/share/locale all || return 1
40   # Install configuration files
41   install -m644 config/mpegstill/rtext*.mpg ${pkgdir}/etc/vdr/plugins/${_pluginname} || return 1
42   ln -s rtextUnten-kleo2-live.mpg ${pkgdir}/etc/vdr/plugins/${_pluginname}/radio.mpg || return 1
43   ln -s rtextUnten-kleo2-replay.mpg ${pkgdir}/etc/vdr/plugins/${_pluginname}/replay.mpg || return 1
44   install -m644 config/scripts/LIESMICH.Scripts ${pkgdir}/etc/vdr/plugins/${_pluginname} || return 1
45   install -m755 config/scripts/radioinfo-* ${pkgdir}/etc/vdr/plugins/${_pluginname} || return 1
47   # Install documents
48   for _file in HISTORY LIESMICH.bitte README; do
49     install -m644 ${_file} ${pkgdir}/usr/share/doc/${pkgname}/${_file} || return 1
50   done