initial commit

This commit is contained in:
Dominik Schwaiger 2022-09-10 22:55:17 +02:00
commit 8e45f6fd37
No known key found for this signature in database
GPG key ID: F7E7E19BC69F7DF5
3 changed files with 63 additions and 0 deletions

18
.SRCINFO Normal file
View file

@ -0,0 +1,18 @@
pkgbase = surrealdb
pkgdesc = A scalable, distributed, collaborative, document-graph database, for the realtime web
pkgver = 1.0.0_beta.7
pkgrel = 1
url = https://github.com/surrealdb/surrealdb
arch = x86_64
license = custom:BSL
license = MIT
license = Apache
checkdepends = rust
makedepends = rust
depends = curl
source = https://github.com/surrealdb/surrealdb/releases/download/v1.0.0-beta.7/LICENSE
source = https://github.com/surrealdb/surrealdb/archive/refs/tags/v1.0.0-beta.7.tar.gz
sha256sums = 3012620080caa47eb9d8fd490044274b9b71eda7fc48c9084914a5470800a868
sha256sums = 21bdc44686a656c3f96415f398ddfcc1be68c48d0677a5771bb092092d626589
pkgname = surrealdb

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
*.tar.*
src/
pkg/
LICENSE
cache/

40
PKGBUILD Normal file
View file

@ -0,0 +1,40 @@
# Maintainer: Dominik Schwaiger <mail@dominik-schwaiger.ch>
pkgname=surrealdb
pkgver=1.0.0_beta.7
pkgrel=1
epoch=
pkgdesc="A scalable, distributed, collaborative, document-graph database, for the realtime web"
arch=('x86_64')
url="https://github.com/surrealdb/surrealdb"
license=('custom:BSL' 'MIT' 'Apache')
groups=()
depends=('curl')
makedepends=('rust')
checkdepends=('rust')
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("https://github.com/${pkgname}/${pkgname}/releases/download/v${pkgver//_/-}/LICENSE" "https://github.com/${pkgname}/${pkgname}/archive/refs/tags/v${pkgver//_/-}.tar.gz")
noextract=()
sha256sums=('3012620080caa47eb9d8fd490044274b9b71eda7fc48c9084914a5470800a868' '21bdc44686a656c3f96415f398ddfcc1be68c48d0677a5771bb092092d626589') validpgpkeys=()
build() {
cd "$pkgname-${pkgver//_/-}"
make build
}
check() {
cd "$pkgname-${pkgver//_/-}"
make -k check
}
package() {
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
cd "$pkgname-${pkgver//_/-}"
install -Dm755 target/release/surreal "$pkgdir/usr/bin/surreal"
}