+surrealdb (#133)

* +surrealdb

* add openssl dependency

* add gcc dependency

* build fixes

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
This commit is contained in:
John Allen 2023-03-31 14:58:52 -04:00 committed by GitHub
parent 8d9cdb01df
commit a7aeee7413
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -0,0 +1,32 @@
distributable:
url: https://github.com/surrealdb/surrealdb/archive/refs/tags/v1.0.0-beta.8.tar.gz
strip-components: 1
provides:
- bin/surreal
versions:
- 0.0.0
# FIXME once there has been an official release
# github: surrealdb/surrealdb
dependencies:
openssl.org: ^1
build:
dependencies:
tea.xyz/gx/cc: c99
rust-lang.org: ">=1.60"
rust-lang.org/cargo: "*"
freedesktop.org/pkg-config: ^0.29
gnu.org/patch: '*' # rquickjs-sys:build.rs:L132
script: |
cargo install --path . --root {{prefix}}
env:
SURREAL_BUILD_METADATA: "tea"
linux:
# Needed to build `generic-array` for some odd reason
RUSTFLAGS: "-C linker=cc"
# FIXME: a better test needs to spin up the db server...
test: surreal version