1 # Maintainer: J. W. Birdsong <jwbirdsong AT gmail DOT com>
2 # Contributor: Lukasz Fidosz <virhilo@gmail.com>
3 pkgname=xrenderbenchmark
6 pkgdesc="The xrender benchmark."
9 url="http://cgit.freedesktop.org/~aplattner/xrenderbenchmark/"
10 depends=('qt' 'xorg-server')
13 source=("http://cgit.freedesktop.org/~aplattner/xrenderbenchmark/snapshot/xrenderbenchmark-master.tar.bz2" ${pkgname}.launcher)
14 md5sums=('f06b310d834778f413cac7f91d9265d7'
15 'f29c1ea62612fbca82554a3e0e0ffe92')
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
23 ./configure --prefix=/usr
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}