updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / vdr-streamdev / PKGBUILD
blobea6917cc23195face4352b77e0839e82fdd438a9
1 # Maintainer: David Spicer <azleifel at googlemail dot com>
2 # Contributor: Mathias Fussenegger <dasjordi@gmail.com>
4 pkgname=vdr-streamdev
5 _pluginname=streamdev
6 pkgver=0.5.1
7 pkgrel=1
8 arch=('i686' 'x86_64')
9 pkgdesc="A VDR plugin that implements the VTP (Video Transfer Protocol)"
10 url="http://projects.vdr-developer.org/projects/plg-streamdev"
11 license=('GPL2')
12 depends=('vdr' 'gcc-libs')
13 backup=('etc/vdr/plugins/streamdev/streamdevhosts.conf'
14         'etc/vdr/plugins/streamdev-server/streamdevhosts.conf')
15 install=${pkgname}.install
16 source=(http://projects.vdr-developer.org/attachments/download/497/${pkgname}-${pkgver}.tgz)
17 md5sums=('6abebb62f5825324092ae1c7df3692c8')
19 build() {
20   cd "${srcdir}/${_pluginname}-${pkgver}"
22   # Assumed VDR directory environment (VDRDIR/Make.config):
23   # MANDIR       = /usr/share/man
24   # BINDIR       = /usr/bin
25   # LOCDIR       = /usr/share/locale
26   # PLUGINLIBDIR = /usr/lib/vdr
27   # VIDEODIR     = /var/spool/video
28   # CONFDIR      = /etc/vdr
30   install -d -m755 "${pkgdir}/etc/vdr/plugins/${_pluginname}-server"
31   install -d -m755 "${pkgdir}/usr/lib/vdr"
32   install -d -m755 "${pkgdir}/usr/share/doc/${pkgname}"
33   install -d -m755 "${pkgdir}/usr/share/locale"
34   
35   make VDRDIR="/usr/include/vdr" \
36        LIBDIR="${pkgdir}/usr/lib/vdr" \
37        LOCALEDIR="${pkgdir}/usr/share/locale" all
39   # Install configuration etc. files
40   install -m755 streamdev-server/externremux.sh "${pkgdir}/etc/vdr/plugins/${_pluginname}-server"
41   install -m644 streamdev-server/streamdevhosts.conf "${pkgdir}/etc/vdr/plugins/${_pluginname}-server"
42   
43   # Install documents
44   for _file in CONTRIBUTORS HISTORY PROTOCOL README; do
45     install -m644 "${_file}" "${pkgdir}/usr/share/doc/${pkgname}/${_file}"
46   done