summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 54f010984b1adc10ee5e56baeb116fd0d338a21e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Maintainer: Arnaud Berthomier <arnaud@cyprio.net>

pkgname=gleam
pkgver="0.14.3"
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=('28477023aca51b5309ebedf03e313b25ddc1c688301e3f06bfbfe396df4f8434')
sha512sums=('605a2af9d059a4d43a9293c2cd4def80e26f168f13dbf0e1c6aa4dc03ef90a6db9c06c35c6c531b315eedf92059094af23d4663fd6c1f89045d46b10b544a75e')

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"
}