# Maintainer: Arnaud Berthomier pkgname=gleam pkgver="0.18.0" 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=('9aead695a3baf2e62b462dbacb588be3f3ac778415afc57ab85087fc7955f0ac') sha512sums=('72ed516e415ba811b4c9b9511eb8432a3de0249f2d44379f62058991c585192c0f9d2eb2f13a7c65e7e8401a75db4970e3e219088e86988b31d5b4e030f0dac4') 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" }