PKGBUILDs/extra/xine-ui/PKGBUILD

32 lines
1.2 KiB
Bash
Raw Normal View History

2009-10-10 02:23:22 +00:00
# $Id: PKGBUILD 42799 2009-06-18 20:25:09Z eric $
# Maintainer: Eric Belanger <eric@archlinux.org>
pkgname=xine-ui
pkgver=0.99.5
pkgrel=5
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' 'readline>=6.0.00')
makedepends=('lirc' 'libxt')
optdepends=('lirc')
options=('!emptydirs')
source=(http://downloads.sourceforge.net/sourceforge/xine/${pkgname}-${pkgver}.tar.gz)
md5sums=('e643cd1fcad4d98a5ae4eb877ce5087b')
sha1sums=('4f452516319f31cda01d08ea2779f195933af0bb')
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 || return 1
./configure --prefix=/usr --mandir=/usr/share/man \
--with-curses --with-x --enable-lirc --without-aalib || return 1
make || return 1
make DESTDIR="${pkgdir}" install || return 1
install -d ${pkgdir}/usr/share/applications
echo "Categories=Application;AudioVideo;" >> "${pkgdir}/usr/share/xine/desktop/xine.desktop" || return 1
mv "${pkgdir}/usr/share/xine/desktop/xine.desktop" "${pkgdir}/usr/share/applications"
}