updated on Mon Jan 23 12:00:23 UTC 2012
[aur-mirror.git] / xdtv / PKGBUILD
blobd97e8b3ef32869b8c4f3832417151ace883dd2d9
1 # Maintainer: kfgz <kfgz at interia pl>
2 # Contributor: Gilles CHAUVIN <gcnweb at gmail dot com>
4 pkgname=xdtv
5 pkgver=2.4.1cvs15
6 pkgrel=2
7 pkgdesc="A software that allows you to watch and record TV"
8 url="http://xawdecode.sourceforge.net/"
9 arch=('i686' 'x86_64')
10 license=('GPL')
11 conflicts=('xdtv-stable')
12 install=xdtv.install
13 depends=('curl' 'faac' 'lame' 'libjpeg' 'libtheora' 'libvorbis' 'libxaw' 'libxinerama' \
14          'libxv' 'libxxf86dga' 'libxxf86vm' 'lirc-utils' 'sdl' 'xvidcore' 'zvbi')
15 source=(${pkgname}-${pkgver}.tar.gz::http://sourceforge.net/projects/xawdecode/files/01%20-%20XdTV/${pkgver}%20%28Only%20to%20follow%20the%20FFmpeg%20updates%29/${pkgname}-${pkgver}.tar.gz/download \
16         ${pkgname}.desktop)
17 md5sums=('890a6c98c904326be88d163cdf602018' \
18          '073ae6f584a79f9eaf1236184ff155da')
20 build() {
21   cd ${srcdir}/${pkgname}-${pkgver}
22   ./configure --prefix=/usr \
23               --with-fontdir=/usr/share/fonts/misc \
24               --with-appdefaultsdir=/usr/lib/X11/app-defaults \
25               --disable-x264 
26   make
29 package() {
30   cd ${srcdir}/${pkgname}-${pkgver}
31   make DESTDIR=${pkgdir} install
32   
33   # Remove unnecessary files
34   rm -f ${pkgdir}/usr/share/fonts/misc/fonts.{dir,scale}
35   
36   # Move icons
37   mkdir -p ${pkgdir}/usr/share/pixmaps
38   mv ${pkgdir}/usr/share/xdtv/icons/* ${pkgdir}/usr/share/pixmaps
39   rm -rf ${pkgdir}/usr/share/xdtv
40   
41   # Desktop File
42   mkdir -p -m755 ${pkgdir}/usr/share/applications
43   install -m644 ${srcdir}/${pkgname}.desktop ${pkgdir}/usr/share/applications/