summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorOrestis Floros2020-10-27 21:47:53 +0100
committerOrestis Floros2020-10-27 21:51:49 +0100
commit10bd2b72cacff107e1bde62091e43511f525adfd (patch)
treeae385f9ed8faab6278faa1fb872bbac8c422e7a9
downloadaur-10bd2b72cacff107e1bde62091e43511f525adfd.tar.gz
First commit
-rw-r--r--.SRCINFO17
-rw-r--r--.gitignore15
-rw-r--r--PKGBUILD34
3 files changed, 66 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a8d69d1994f
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = csmith-git
+ pkgdesc = Tool for stress-testing compilers, static analyzers, and other tools that process C code
+ pkgver = csmith.2.3.0.r62.g0bd545f
+ pkgrel = 1
+ url = https://github.com/csmith-project/csmith
+ arch = i686
+ arch = x86_64
+ license = custom:BSD
+ makedepends = git
+ depends = perl
+ provides = csmith
+ conflicts = csmith
+ source = git+git://github.com/csmith-project/csmith
+ sha1sums = SKIP
+
+pkgname = csmith-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..3c5787b2276
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,15 @@
+*.tar
+*.tar.*
+*.jar
+*.exe
+*.msi
+*.zip
+*.tgz
+*.log
+*.log.*
+*.sig
+
+pkg/
+src/
+
+csmith/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d6649007d34
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Maintainer: Orestis Floros <orestisflo@gmail.com>
+
+pkgname=csmith-git
+pkgver=csmith.2.3.0.r62.g0bd545f
+pkgrel=1
+pkgdesc='Tool for stress-testing compilers, static analyzers, and other tools that process C code'
+arch=('i686' 'x86_64')
+url='https://github.com/csmith-project/csmith'
+license=('custom:BSD')
+depends=('perl')
+provides=('csmith')
+conflicts=('csmith')
+makedepends=('git')
+source=('git+git://github.com/csmith-project/csmith')
+sha1sums=('SKIP')
+
+pkgver() {
+ cd csmith
+ git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
+}
+
+build() {
+ cd csmith
+ autoreconf -fi
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd csmith
+ make DESTDIR="${pkgdir}/" install
+ install --directory "${pkgdir}/usr/share/licenses/${pkgname}/"
+ install COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}