# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=xine-ui
pkgver=0.99.12
pkgrel=2
pkgdesc="A free video player for Unix"
arch=('x86_64')
license=('GPL')
url="https://www.xine-project.org"
depends=('xine-lib' 'curl' 'libxft' 'libxxf86vm' 'lirc' 'xdg-utils')
source=(https://downloads.sourceforge.net/xine/${pkgname}-${pkgver}.tar.xz)
sha1sums=('ee4fc8bad73f67527a035b67ce97c542bd6d6db6')

build() {
  cd ${pkgname}-${pkgver}
  ./configure --prefix=/usr --mandir=/usr/share/man \
    --with-x --enable-lirc --without-aalib --enable-debug
  make
}

package() {
  cd ${pkgname}-${pkgver}
  make DESTDIR="${pkgdir}" desktopdir=/usr/share/applications install
}
