summaryrefslogtreecommitdiffstats
path: root/abs/core/mesa-demos/PKGBUILD
blob: dfeb84a383efb24e662aed7e26209453db02d585 (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
# $Id$
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Maintainer: Andreas Radke <andyrtr@archlinux.org>

pkgname=mesa-demos
pkgver=8.0.1
pkgrel=3
arch=('i686' 'x86_64')
pkgdesc="Mesa demos and tools"
url="http://mesa3d.sourceforge.net"
license=('custom')
depends=('glew>=1.5.6')
conflicts=('mesa<7.9')
source=(ftp://ftp.freedesktop.org/pub/mesa/demos/${pkgver}/mesa-demos-${pkgver}.tar.bz2
        LICENSE)

build() {
  cd "${srcdir}/mesa-demos-${pkgver}"
  ./configure --prefix=/usr
  make
}

package() {
  cd "${srcdir}/mesa-demos-${pkgver}"
  make DESTDIR="${pkgdir}" install
  install -m755 -d "${pkgdir}/usr/share/licenses/mesa-demos"
  install -m755 "${srcdir}/LICENSE" "${pkgdir}/usr/share/licenses/mesa-demos/"
  mv ${pkgdir}/usr/bin/clear ${pkgdir}/usr/bin/glxclear
  mv ${pkgdir}/usr/bin/line ${pkgdir}/usr/bin/glxline
}

md5sums=('320c2a4b6edc6faba35d9cb1e2a30bf4'
         '10a9d94c27477a9f9afed27f7d1c4476')