1 # Maintainer: spider-mario <spidermario@free.fr>
5 pkgdesc="Tool for stress-testing compilers, static analyzers, and other tools that process C code"
7 url="http://embed.cs.utah.edu/csmith/"
10 source=(csmith.sh http://embed.cs.utah.edu/csmith/$pkgname-$pkgver.tar.gz)
11 md5sums=('75128bd5310cbc1c139b696da3b8e4d8'
12 'ab0bee5da4d1c2b55c32789b716846cb')
15 cd "$srcdir/$pkgname-$pkgver"
16 ./configure --prefix=/usr
21 cd "$srcdir/$pkgname-$pkgver"
26 cd "$srcdir/$pkgname-$pkgver"
28 make DESTDIR="$pkgdir/" install
30 install runtime/safe_math{,_macros,_macros_notmp}.h "$pkgdir/usr/include/$pkgname-$pkgver/"
31 rm "$pkgdir/usr/include/$pkgname-$pkgver/"safe_math{,_macros,_macros_notmp}.m4
33 sed --expression=s/gcc-4.0/gcc/g scripts/compiler_test.in > "$pkgdir/usr/bin/compiler_test.in"
35 install --directory "$pkgdir/opt/"
37 cp --recursive "$srcdir/$pkgname-$pkgver/" "$pkgdir/opt/$pkgname"
40 install --directory "$pkgdir/etc/profile.d/"
41 install ../../csmith.sh "$pkgdir/etc/profile.d/"
43 install --directory "$pkgdir/usr/share/licenses/$pkgname/"
44 install COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
47 # vim:set ts=2 sw=2 et: