summaryrefslogtreecommitdiffstats
path: root/abs/core/xf86-video-openchrome/PKGBUILD
blob: 320aaac676eb5a8c11a4df714141c454e0c1a081 (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
31
32
33
34
35
# $Id: PKGBUILD 75910 2010-04-04 19:38:56Z jgc $
# Contributor: Paul Mattal <paul@mattal.com>
# Maintainer: Juergen Hoetzel <juergen@hoetzel.info>

pkgname=xf86-video-openchrome
pkgver=0.2.904
pkgrel=3
pkgdesc="X.Org Openchrome drivers"
arch=(i686 x86_64)
license=('custom')
url="http://www.openchrome.org"
depends=('unichrome-dri>=7.6')
makedepends=('pkgconfig' 'xorg-server>=1.8.0' 'xf86driproto' 'xorg-util-macros' 'libxvmc' 'glproto' 'mesa>=7.8' 'inputproto')
replaces=('openchrome' 'xf86-video-via')
options=('!libtool' 'force' '!makeflags')
conflicts=('xf86-video-via' 'xf86-video-unichrome' 'openchrome' 'xorg-server<1.8.0')
source=(http://xorg.freedesktop.org/releases/individual/driver/${pkgname}-${pkgver}.tar.bz2
        drm_stdint.patch
        svn-r839.patch
        LICENSE.txt)
md5sums=('f2481d98ef54febf5bffbb88a2a2426d'
         'bc516400ffc3df5d0dfe604f6245dd32'
         '5aed4aa44dd5a6d3e2da9baad73ac0ab'
         'addb3cf2671f4cf7e91156952de1627f')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}" || return 1
  patch -Np1 -i "${srcdir}/svn-r839.patch" || return 1
  patch -Np0 -i "${srcdir}/drm_stdint.patch" || return 1
  ./configure --prefix=/usr || return 1
  make || return 1
  make DESTDIR="${pkgdir}" install || return 1
  install -m755 -d "${pkgdir}/usr/share/licenses/${pkgname}"
  install -m644 "${srcdir}/LICENSE.txt" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING" || return 1
}