updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / c-ray / PKGBUILD
blobcc57e1f22e637a7acac193ac929748c882a17ce1
1 #Maintainer: kfgz <kfgz at interia pl>
2 pkgname=c-ray
3 pkgver=1.1
4 pkgrel=1
5 pkgdesc="A simple raytracer and CPU benchmark"
6 url="http://www.futuretech.blinkenlights.nl/c-ray.html"
7 license=('custom')
8 arch=(i686 x86_64)
9 source=(http://www.futuretech.blinkenlights.nl/depot/${pkgname}-${pkgver}.tar.gz \
10         c-ray-run \
11         c-ray-run-full)
12 md5sums=('5b0b939c953dc7f7eb03fae2c1526d33' \
13          '4fef5fdb248f1111820068b54612c49a' \
14          'e44f75079cebbc1265a910f7b1e567b5')
16 build() {
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
22 package() {
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