# Contributor: rubicon # Maintainer: rubicon pkgname=gleam pkgver=0.25.3 pkgrel=0 pkgdesc="Statically-typed language that compiles to Erlang and JS" url="https://gleam.run/" # s390x, riscv64, ppc64le: ring # armhf, armv7: error: Undefined temporary symbol .LBB81_2 arch="all !armhf !armv7 !s390x !riscv64 !ppc64le" license="Apache-2.0" depends="erlang-dev" makedepends="cargo openssl-dev>3" source="$pkgname-$pkgver.tar.gz::https://github.com/gleam-lang/gleam/archive/refs/tags/v$pkgver.tar.gz" # system libs export CARGO_FEATURE_USE_SYSTEM_LIBS=1 export OPENSSL_NO_VENDOR=1 # optimise size export CARGO_PROFILE_RELEASE_LTO="true" export CARGO_PROFILE_RELEASE_CODEGEN_UNITS=1 export CARGO_PROFILE_RELEASE_OPT_LEVEL="s" prepare() { default_prepare cargo fetch --locked } build() { cargo build --release --frozen } check() { cargo test --frozen } package() { install -Dvm755 target/release/gleam -t "$pkgdir"/usr/bin/ } sha512sums=" 0fd1e98a18153644cb38eb300ad7b5c7c987d064259b9f1c0a408a20de328e874448ed2888c841a407fd3ce364bf148f2929b1bc68e95b3a428384ea63b6fc3b gleam-0.25.3.tar.gz "