summaryrefslogtreecommitdiffstats
path: root/abs/extra/xine-ui/PKGBUILD
blob: 79ab3c396f4394ba098a5da8f5377c5aee57f98a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# $Id: PKGBUILD 9858 2008-08-19 23:56:23Z eric $
# Maintainer: Eric Belanger <eric@archlinux.org>

pkgname=xine-ui
pkgver=0.99.5
pkgrel=4
pkgdesc="A free video player for Unix"
arch=('i686' 'x86_64')
license=('GPL')
url="http://xinehq.de/"
depends=('xine-lib' 'curl>=7.16.2' 'libxtst' 'libxinerama' 'libxv' 'libpng' 'libxft' 'libsm' 'libxxf86vm' 'ncurses>=5.6-7')
makedepends=('lirc' 'libxt')
optdepends=('lirc')
options=('!emptydirs')
source=(http://downloads.sourceforge.net/sourceforge/xine/${pkgname}-${pkgver}.tar.gz)
md5sums=('e643cd1fcad4d98a5ae4eb877ce5087b')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  
  #add missing constant (defined in xine.h from xine-lib cvs)
  echo '#define XINE_MSG_AUDIO_OUT_UNAVAILABLE 11' >> src/xitk/common.h
  ./configure --prefix=/usr --mandir=/usr/share/man \
    --with-curses --with-x --enable-lirc --without-aalib
  make || return 1
  make DESTDIR=${pkgdir} install
  install -d ${pkgdir}/usr/share/applications
  echo "Categories=Application;AudioVideo;" >> ${pkgdir}/usr/share/xine/desktop/xine.desktop
  mv ${pkgdir}/usr/share/xine/desktop/xine.desktop ${pkgdir}/usr/share/applications
}