updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / vdr-xineliboutput / PKGBUILD
blobd81c66089fb060fcadb563d698c27c945d042e9b
1 # Maintainer: David Spicer <azleifel at googlemail dot com>
2 # Contributor: Franz Burgmann <f dot burgmann at gmail dot com>
4 pkgname=vdr-xineliboutput
5 _pluginname=xineliboutput
6 pkgver=1.0.7
7 pkgrel=1
8 arch=('i686' 'x86_64')
9 pkgdesc="A VDR plugin that allows VDR to be used with budget cards (alternative to vdr-xine)"
10 url="http://sourceforge.net/projects/xineliboutput/"
11 license=('GPL2')
12 depends=('dbus-glib' 'libextractor' 'vdr' 'xine-lib')
13 makedepends=('pkg-config')
14 optdepends=('xine-ui: An alternative frontend')
15 install=${pkgname}.install
16 source=(http://prdownloads.sourceforge.net/sourceforge/xineliboutput/${pkgname}-${pkgver}.tar.bz2
17         remote.conf.LIRC.devinput
18         remote.conf.LIRC.mceusb
19         vdr-sxfe.desktop
20         vdr-xine-ui.desktop)
21 md5sums=('ad31072bb2b9da1de9e20dcb92934f15'
22          '8781115ebac9dc500d4096c376c8d605'
23          '8a1d026743620a3f5fd2e9c31155c69d'
24          'de4b514c2a5e6d84dc4b87ea3b9fde9e'
25          '2d5cef1e40a5c7b920ea75c3d129c61f')
27 build() {
28   cd "${srcdir}/${_pluginname}-${pkgver}"
30   # Assumed VDR directory environment (VDRDIR/Make.config):
31   # MANDIR       = /usr/share/man
32   # BINDIR       = /usr/bin
33   # LOCDIR       = /usr/share/locale
34   # PLUGINLIBDIR = /usr/lib/vdr
35   # VIDEODIR     = /var/spool/video
36   # CONFDIR      = /etc/vdr
37   
38   install -d -m755 "${pkgdir}/usr/lib/vdr"
39   install -d -m755 "${pkgdir}/usr/share/doc/${pkgname}"
40   install -d -m755 "${pkgdir}/usr/share/locale"
41   
42   make VDRDIR="/usr/include/vdr" \
43        LIBDIR="${pkgdir}/usr/lib/vdr" \
44        LOCALEDIR="${pkgdir}/usr/share/locale" \
45        DESTDIR="${pkgdir}" install
46   
47   # Install documents and example remote.conf
48   for _file in HISTORY README examples/remote.conf.example "${srcdir}/remote.conf.LIRC.devinput" "${srcdir}/remote.conf.LIRC.mceusb"; do
49     install -m644 "${_file}" "${pkgdir}/usr/share/doc/${pkgname}/${_file##*/}"
50   done
51   
52   # Install homebrew desktop files
53   install -D -m644 "${srcdir}/vdr-sxfe.desktop" "${pkgdir}/usr/share/applications/vdr-sxfe.desktop"
54   install -m644 "${srcdir}/vdr-xine-ui.desktop" "${pkgdir}/usr/share/applications/vdr-xine-ui.desktop"