summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO19
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD44
3 files changed, 67 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..410f32c76ce
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = rigetti-quilc-git
+ pkgdesc = The @rigetti optimizing Quil compiler.
+ pkgver = r493.d102d70
+ pkgrel = 1
+ url = https://github.com/rigetti/quilc
+ arch = x86_64
+ arch = i686
+ license = Apache
+ makedepends = git
+ depends = sbcl
+ depends = quicklisp
+ depends = zeromq
+ provides = quilc
+ conflicts = quilc
+ source = git+https://github.com/rigetti/quilc.git
+ sha256sums = SKIP
+
+pkgname = rigetti-quilc-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..8a81cb84c46
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+rigetti-quilc-git-*.pkg.tar.xz
+pkg/
+quilc/
+src/
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..212a5e4affc
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,44 @@
+# Maintainer: Shiv Upadhyay <shivnupadhyay@gmail.com>
+pkgname=rigetti-quilc-git
+_pkgname=quilc
+pkgver=r493.d102d70
+pkgrel=1
+pkgdesc="The @rigetti optimizing Quil compiler."
+arch=('x86_64' 'i686')
+url="https://github.com/rigetti/quilc"
+license=('Apache')
+depends=('sbcl' 'quicklisp' 'zeromq' )
+makedepends=( 'git' )
+checkdepends=()
+optdepends=()
+provides=("$_pkgname")
+conflicts=("$_pkgname")
+source=("git+https://github.com/rigetti/quilc.git")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$_pkgname"
+
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+prepare() {
+ cd "$_pkgname"
+}
+
+build() {
+ cd "$_pkgname"
+ make quilc
+}
+
+check() {
+ cd "$_pkgname"
+ make test
+}
+
+package() {
+ cd "$_pkgname"
+ mkdir -p "$pkgdir/usr/bin"
+ make DESTDIR="$pkgdir/usr" PREFIX="" install
+ install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
+}