pantry/projects/surrealdb.com/package.yml

33 lines
766 B
YAML
Raw Normal View History

distributable:
2023-09-18 04:16:59 +03:00
url: https://github.com/surrealdb/surrealdb/archive/refs/tags/v{{version}}.tar.gz
strip-components: 1
provides:
- bin/surreal
versions:
2023-09-18 04:16:59 +03:00
github: surrealdb/surrealdb
dependencies:
openssl.org: ^1
build:
dependencies:
2024-04-09 22:59:19 +03:00
rust-lang.org: '>=1.60'
rust-lang.org/cargo: '*'
freedesktop.org/pkg-config: ^0.29
2024-04-09 22:59:19 +03:00
gnu.org/patch: '*' # rquickjs-sys:build.rs:L132
script: cargo install --path . --locked --root {{prefix}}
env:
2024-04-09 22:59:19 +03:00
SURREAL_BUILD_METADATA: 'pkgx'
RUSTFLAGS:
# required as of v1.4.0
- --cfg surrealdb_unstable
linux:
2024-04-09 22:59:19 +03:00
RUSTFLAGS:
# Needed to build `generic-array` for some odd reason
- -C linker=cc
# FIXME: a better test needs to spin up the db server...
test: surreal version