summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorShiv Upadhyay2020-02-05 13:08:01 -0500
committerShiv Upadhyay2020-02-05 13:08:01 -0500
commit4afc2e11d80d655bb80bcd3229323dc29e7cea8f (patch)
tree5e688841b743786ce6c3a55def9fe359b672271e /PKGBUILD
downloadaur-4afc2e11d80d655bb80bcd3229323dc29e7cea8f.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD44
1 files changed, 44 insertions, 0 deletions
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"
+}