updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / xrenderbenchmark / PKGBUILD
blob250ecd2864f9422eb83657f67ae0cbd707958845
1 # Maintainer: J. W. Birdsong  <jwbirdsong AT gmail DOT com>
2 # Contributor: Lukasz Fidosz <virhilo@gmail.com>
3 pkgname=xrenderbenchmark
4 pkgver=0.10
5 pkgrel=2
6 pkgdesc="The xrender benchmark."
7 arch=('i686'  'x86_64')
8 license=('custom')
9 url="http://cgit.freedesktop.org/~aplattner/xrenderbenchmark/"
10 depends=('qt' 'xorg-server')
11 options=(libtool)
13 source=("http://cgit.freedesktop.org/~aplattner/xrenderbenchmark/snapshot/xrenderbenchmark-master.tar.bz2" ${pkgname}.launcher)
14 md5sums=('f06b310d834778f413cac7f91d9265d7'
15          'f29c1ea62612fbca82554a3e0e0ffe92')
17 build() {
18   cd $srcdir/$pkgname-master
19   libtoolize --force --copy 
20  sed -i "s|libpng12|libpng|" configure.ac
21  sed -i "s|png_set_gray_1_2_4_to_8|png_set_expand_gray_1_2_4_to_8|" readpng.c 
22 ./autogen.sh
23 ./configure --prefix=/usr 
24 make
26 package() {
27 cd $srcdir/$pkgname-master
28 install -dm755  ${pkgdir}/usr/share/${pkgname}/images/ ${pkgdir}/usr/bin
29 install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
30 install -D -m755 $srcdir/${pkgname}.launcher \
31             ${pkgdir}/usr/bin/${pkgname}
33 mv images/*  ${pkgdir}/usr/share/${pkgname}/images/
34 mv xrenderbenchmark ${pkgdir}/usr/share/${pkgname}