# Maintainer: Arnaud Berthomier pkgname=gleam pkgver="0.13.1" pkgrel=1 pkgdesc="A statically typed language for the Erlang VM" arch=('any') url="http://github.com/lpil/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=('effa8d8e676863f9ae0ddee0c02a47108d4188fffb7cd17b672afcf26867dfe1') sha512sums=('792eb5a7291a1cb3416c6bdc3626c92da3206a4ca5836209cd5cfa43940d44a38f7cf7e86049973d941b0d1cda3baa95f3463b8fdba3dbe8d4b72b3a1b8478b8') 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" }