summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorspider-mario2015-12-09 00:04:31 +0800
committerjerry732042015-12-09 00:04:31 +0800
commit30c3397349eb9d053a661f4c86072ffec5c23cb1 (patch)
tree0f8d2921303b7da50364cd0c3fff876b4742b590
downloadaur-30c3397349eb9d053a661f4c86072ffec5c23cb1.tar.gz
Initial commit. Version 2.1.0-1
-rw-r--r--.SRCINFO18
-rw-r--r--PKGBUILD47
-rwxr-xr-xcsmith.sh1
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..86be96e3c54
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,18 @@
+# Generated by mksrcinfo v8
+# Tue Dec 8 16:02:56 UTC 2015
+pkgbase = csmith
+ pkgdesc = Tool for stress-testing compilers, static analyzers, and other tools that process C code
+ pkgver = 2.1.0
+ pkgrel = 1
+ url = http://embed.cs.utah.edu/csmith/
+ arch = i686
+ arch = x86_64
+ license = custom:BSD
+ depends = perl
+ source = csmith.sh
+ source = http://embed.cs.utah.edu/csmith/csmith-2.1.0.tar.gz
+ md5sums = 75128bd5310cbc1c139b696da3b8e4d8
+ md5sums = 3170ce73f0347d82c1206cf145cb49c7
+
+pkgname = csmith
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..2485847dc8b
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Maintainer: spider-mario <spidermario@free.fr>
+pkgname=csmith
+pkgver=2.1.0
+pkgrel=1
+pkgdesc="Tool for stress-testing compilers, static analyzers, and other tools that process C code"
+arch=('i686' 'x86_64')
+url="http://embed.cs.utah.edu/csmith/"
+license=('custom:BSD')
+depends=('perl')
+source=(csmith.sh http://embed.cs.utah.edu/csmith/$pkgname-$pkgver.tar.gz)
+md5sums=('75128bd5310cbc1c139b696da3b8e4d8'
+ '3170ce73f0347d82c1206cf145cb49c7')
+
+build() {
+ cd "$srcdir/$pkgname-$pkgver"
+ ./configure --prefix=/usr
+ make
+}
+
+check() {
+ cd "$srcdir/$pkgname-$pkgver"
+ make -k check
+}
+
+package() {
+ cd "$srcdir/$pkgname-$pkgver"
+
+ make DESTDIR="$pkgdir/" install
+
+ install runtime/safe_math{,_macros,_macros_notmp}.h "$pkgdir/usr/include/$pkgname-$pkgver/"
+ rm "$pkgdir/usr/include/$pkgname-$pkgver/"safe_math{,_macros,_macros_notmp}.h
+
+ sed --expression=s/gcc-4.0/gcc/g scripts/compiler_test.in > "$pkgdir/usr/bin/compiler_test.in"
+
+ install --directory "$pkgdir/opt/"
+ pushd "$pkgdir/opt/"
+ cp --recursive "$srcdir/$pkgname-$pkgver/" "$pkgdir/opt/$pkgname"
+ popd
+
+ install --directory "$pkgdir/etc/profile.d/"
+ install ../../csmith.sh "$pkgdir/etc/profile.d/"
+
+ install --directory "$pkgdir/usr/share/licenses/$pkgname/"
+ install COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}
+
+# vim:set ts=2 sw=2 et:
diff --git a/csmith.sh b/csmith.sh
new file mode 100755
index 00000000000..4fc8652d8b1
--- /dev/null
+++ b/csmith.sh
@@ -0,0 +1 @@
+export CSMITH_PATH=/opt/csmith/