mirror of
https://github.com/archlinux/aur.git
synced 2026-01-27 20:28:31 +01:00
Build a release executable and update license identifier
This commit is contained in:
parent
c394686c36
commit
da29cf7ad4
2 changed files with 9 additions and 5 deletions
4
.SRCINFO
4
.SRCINFO
|
|
@ -4,7 +4,7 @@ pkgbase = surrealdb
|
|||
pkgrel = 2
|
||||
url = https://github.com/surrealdb/surrealdb
|
||||
arch = x86_64
|
||||
license = custom:BSL
|
||||
license = BUSL-1.1
|
||||
checkdepends = rustup
|
||||
checkdepends = cargo-make
|
||||
checkdepends = clang
|
||||
|
|
@ -16,6 +16,8 @@ pkgbase = surrealdb
|
|||
makedepends = patch
|
||||
makedepends = git
|
||||
depends = gcc-libs
|
||||
depends = glibc
|
||||
provides = surrealdb
|
||||
conflicts = surrealdb-bin
|
||||
source = https://github.com/surrealdb/surrealdb/releases/download/v2.0.1/LICENSE
|
||||
source = surrealdb-2.0.1.tar.gz::https://github.com/surrealdb/surrealdb/archive/refs/tags/v2.0.1.tar.gz
|
||||
|
|
|
|||
10
PKGBUILD
10
PKGBUILD
|
|
@ -7,10 +7,11 @@ pkgrel=2
|
|||
pkgdesc="A scalable, distributed, collaborative, document-graph database, for the realtime web"
|
||||
arch=('x86_64')
|
||||
url="https://github.com/surrealdb/surrealdb"
|
||||
license=('custom:BSL')
|
||||
depends=("gcc-libs")
|
||||
license=("BUSL-1.1")
|
||||
depends=("gcc-libs" "glibc")
|
||||
makedepends=("rustup" "cargo-make" "clang" "patch" "git")
|
||||
checkdepends=("rustup" "cargo-make" "clang" "patch" "git")
|
||||
provides=("surrealdb")
|
||||
conflicts=("surrealdb-bin")
|
||||
|
||||
source=(
|
||||
|
|
@ -27,6 +28,7 @@ prepare() {
|
|||
cd "$pkgname-${pkgver//_/-}" || exit
|
||||
rustup toolchain install 1.80.1
|
||||
rustup override set 1.80.1
|
||||
rustup target add "$CARCH-unknown-linux-gnu"
|
||||
}
|
||||
|
||||
build() {
|
||||
|
|
@ -38,7 +40,7 @@ build() {
|
|||
export CXXFLAGS="${CXXFLAGS//-flto=[^ ]*/ }"
|
||||
export LDFLAGS="${LDFLAGS//-flto=[^]*/ }"
|
||||
|
||||
cargo make build
|
||||
cargo build --release --locked --target "$CARCH-unknown-linux-gnu"
|
||||
}
|
||||
|
||||
check() {
|
||||
|
|
@ -57,5 +59,5 @@ check() {
|
|||
package() {
|
||||
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
|
||||
cd "$pkgname-${pkgver//_/-}" || exit
|
||||
install -Dm755 target/make/surreal "$pkgdir/usr/bin/surreal"
|
||||
install -Dm755 "target/$CARCH-unknown-linux-gnu/release/surreal" "$pkgdir/usr/bin/surreal"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue