1 #Maintainer: kfgz <kfgz at interia pl>
5 pkgdesc="A simple raytracer and CPU benchmark"
6 url="http://www.futuretech.blinkenlights.nl/c-ray.html"
9 source=(http://www.futuretech.blinkenlights.nl/depot/${pkgname}-${pkgver}.tar.gz \
12 md5sums=('5b0b939c953dc7f7eb03fae2c1526d33' \
13 '4fef5fdb248f1111820068b54612c49a' \
14 'e44f75079cebbc1265a910f7b1e567b5')
17 cd ${srcdir}/${pkgname}-${pkgver}
18 gcc -O2 -o c-ray-f c-ray-f.c -lm -pipe -march=native
19 gcc -O2 -o c-ray-mt c-ray-mt.c -lpthread -lm -pipe -march=native
23 cd ${srcdir}/${pkgname}-${pkgver}
24 install -dm755 ${pkgdir}/usr/{bin,share/doc/c-ray,share/c-ray}
25 install -m644 README ${pkgdir}/usr/share/doc/c-ray
26 install -m644 sphfract ${pkgdir}/usr/share/c-ray
27 install -m644 scene ${pkgdir}/usr/share/c-ray
28 install -m755 c-ray-f ${pkgdir}/usr/bin
29 install -m755 c-ray-mt ${pkgdir}/usr/bin
30 install -m755 ${srcdir}/c-ray-run ${pkgdir}/usr/bin
31 install -m755 ${srcdir}/c-ray-run-full ${pkgdir}/usr/bin