pantry/projects/surrealdb.com/package.yml
John Allen a7aeee7413
+surrealdb (#133)
* +surrealdb

* add openssl dependency

* add gcc dependency

* build fixes

---------

Co-authored-by: Jacob Heider <jacob@tea.xyz>
2023-03-31 14:58:52 -04:00

33 lines
760 B
YAML

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