# Maintainer: Arnaud Berthomier pkgname=gleam pkgver="0.16.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=('a3c9990e5adcb384a42c344c72823e38cb92f0f71483c45368626b828fb1712f') sha512sums=('45ffb5ae45c03fe6e2602050686eee65259a5e6ad9967b489f6d52806803fe3268976c671a3a5672f576913947b7dc03f207aa22eda028334e3c13c86b59ca76') 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" }