updated on Mon Jan 16 00:01:41 UTC 2012
[aur-mirror.git] / vdr-extrecmenu / PKGBUILD
blobf8073479bb26a2661bb06f38f0aad4ba8e2091a3
1 # Maintainer: David Spicer <azleifel at googlemail dot com>
2 # Contributor: Franz Burgmann <f dot burgmann at gmail dot com>
4 pkgname=vdr-extrecmenu
5 _pluginname=extrecmenu
6 pkgver=1.2
7 pkgrel=1
8 arch=('i686' 'x86_64')
9 pkgdesc="A VDR plugin that extends the recordings menu"
10 url="http://projects.vdr-developer.org/projects/show/plg-extrecmenu"
11 license=('GPL2')
12 depends=('vdr' 'vdrsymbols-ttf')
13 backup=('usr/bin/dvdarchive.sh')
14 source=(http://projects.vdr-developer.org/attachments/download/334/${pkgname}-${pkgver}.tgz)
15 md5sums=('0b83b281462e854936d2192094c04b87')
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}/usr/bin
29   install -d -m755 ${pkgdir}/usr/lib/vdr
30   install -d -m755 ${pkgdir}/usr/share/doc/${pkgname}
31   install -d -m755 ${pkgdir}/usr/share/locale
32   
33   make VDRDIR=/usr/include/vdr \
34        LIBDIR=${pkgdir}/usr/lib/vdr \
35        LOCALEDIR=${pkgdir}/usr/share/locale all
37   # Uncomment lines below to build and install getlength/isodetect utilities
38   #gcc contrib/getlength.c -o getlength
39   #install -m755 getlength ${pkgdir}/usr/bin/getlength
40   #gcc contrib/isodetect.c -o isodetect
41   #install -m755 isodetect ${pkgdir}/usr/bin/isodetect
43   # Install script
44   install -m755 scripts/dvdarchive.sh ${pkgdir}/usr/bin/dvdarchive.sh
45   
46   # Install documents
47   for _file in README HISTORY; do
48     install -m644 ${_file} ${pkgdir}/usr/share/doc/${pkgname}/${_file}
49   done