# Maintainer: Arnaud Berthomier pkgname=gleam pkgver="0.26.1" pkgrel=1 pkgdesc="A friendly language for building type-safe, scalable systems!" arch=('any') url="http://github.com/gleam-lang/gleam" license=('Apache2') depends=('erlang-nox') makedepends=('rust') provides=('gleam') options=(strip !docs !libtool !staticlibs) source=("https://github.com/gleam-lang/gleam/archive/v${pkgver}.tar.gz") sha256sums=('f495617ae9a28568db9437c6a31a675e868f87537a8b65bd38ca185d461d3c1e') sha512sums=('c0f1b1e0c148563bf5f6144b67f6bbe74459d84714373e4b0a9ff6ace0c1fa5dbbc1d34666f86e6732ee051862c025ef74aa8ca0529c38618d81e6e8ea8d11ba') prepare() { cd "$pkgname-$pkgver" } build() { cd "$pkgname-$pkgver" cargo build --release } check() { cd "$pkgname-$pkgver" } package() { cd "$pkgname-$pkgver" local basedir="${pkgdir}/usr/local/bin" install -Dm755 "target/release/gleam" "${basedir}/gleam" }