updated on Thu Jan 12 04:00:44 UTC 2012
[aur-mirror.git] / vdr-rssreader / PKGBUILD
blob440afbd93125f188d850b630cf4b462829411a5d
1 # Contributor: David Spicer <azleifel at googlemail dot com>
3 pkgname=vdr-rssreader
4 _pluginname=rssreader
5 pkgver=1.6.4
6 pkgrel=1
7 arch=('i686' 'x86_64')
8 pkgdesc="An RSS Reader plugin for the Video Disk Recorder (VDR)"
9 url="http://www.saunalahti.fi/rahrenbe/vdr/rssreader/"
10 license=('GPL2')
11 depends=('vdr' 'curl' 'expat')
12 backup=('etc/vdr/plugins/rssreader/rssreader.conf')
13 install=${pkgname}.install
14 source=(http://www.saunalahti.fi/rahrenbe/vdr/rssreader/files/${pkgname}-${pkgver}.tgz)
15 md5sums=('e42f32de5a9f0e5ff333023e15389ee2')
17 build() {
18   cd ${srcdir}/${_pluginname}-${pkgver}
20   # Assumed VDR directory environment (VDRDIR/Make.config):
21   # MANDIR       = /usr/share/man
22   # BINDIR       = /usr/bin
23   # LOCDIR       = /usr/share/locale
24   # PLUGINLIBDIR = /usr/lib/vdr
25   # VIDEODIR     = /var/spool/video
26   # CONFDIR      = /etc/vdr
27   
28   install -d -m755 ${pkgdir}/etc/vdr/plugins/${_pluginname} || return 1
29   install -d -m755 ${pkgdir}/usr/lib/vdr || return 1
30   install -d -m755 ${pkgdir}/usr/share/doc/${pkgname} || return 1
31   install -d -m755 ${pkgdir}/usr/share/locale || return 1
32   
33   make VDRDIR=/usr/include/vdr \
34        LIBDIR=${pkgdir}/usr/lib/vdr \
35        LOCALEDIR=${pkgdir}/usr/share/locale all || return 1
37   # Install configuration file
38   install -m644 rssreader/rssreader.conf ${pkgdir}/etc/vdr/plugins/${_pluginname} || return 1
40   # Install documents
41   for _file in README HISTORY; do
42     install -m644 ${_file} ${pkgdir}/usr/share/doc/${pkgname}/${_file##*/} || return 1
43   done