updated on Thu Jan 26 00:18:00 UTC 2012
[aur-mirror.git] / vdr-xine / PKGBUILD
blob855fcdd8eff409383601aba396129978b5679e8a
1 # Contributor: Franz Burgmann <f dot burgmann at gmail dot com>
2 # Maintainer: David Spicer <azleifel at googlemail dot com>
4 pkgname=vdr-xine
5 _pluginname=xine
6 pkgver=0.9.4
7 pkgrel=1
8 arch=('i686' 'x86_64')
9 pkgdesc="A VDR plugin that allows VDR to be used with budget cards"
10 url="http://sourceforge.net/projects/xine/"
11 license=('GPL2')
12 depends=('vdr' 'xine-lib-vdr')
13 makedepends=('pkgconfig')
14 install=${pkgname}.install
15 source=(http://home.vrweb.de/rnissl/${pkgname}-${pkgver}.tgz
16         vdr-xine.desktop)
17 md5sums=('0374123d6991f55d91122b020361d8f6'
18          '20080b5e0aa3e848d56d363e4a7fdf95')
20 build() {
21   cd "${srcdir}/${_pluginname}-${pkgver}"
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
31   install -d -m755 "${pkgdir}/etc/vdr/plugins/${_pluginname}"
32   install -d -m755 "${pkgdir}/usr/lib/vdr"
33   install -d -m755 "${pkgdir}/usr/share/doc/${pkgname}"
34   install -d -m755 "${pkgdir}/usr/share/locale"
35   
36   make VDRDIR="/usr/include/vdr" \
37        LIBDIR="${pkgdir}/usr/lib/vdr" \
38        LOCALEDIR="${pkgdir}/usr/share/locale" all
39   
40   cp -Rp data/* "${pkgdir}/etc/vdr/plugins/xine"
41   
42   # Install documents
43   for _file in README HISTORY MANUAL; do
44     install -m644 "${_file}" "${pkgdir}/usr/share/doc/${pkgname}"
45   done
47   # Install homebrew desktop file
48   install -D -m644 "${startdir}/vdr-xine.desktop" "${pkgdir}/usr/share/applications/vdr-xine.desktop"