summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3e1db2cef71782b6053ad71e47b4acd7b0a7c27b (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.31.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=('9b4e04887ff62007e19116939921397645c69d4f9b6c7b9de49fdb0a14260c0f')
sha512sums=('c64cd6f9256c2201b7c4ddfda7fb0b1aa2f38ddab52d526ca808e662eb39596ec15e1f78e21a2fe8069250d2b6621ee6684e14307a3b8f145974bece0d78b5f3')

prepare() {
    cd "$pkgname-$pkgver"
}

build() {
    cd "$pkgname-$pkgver"
    cargo build --release
}

check() {
    cd "$pkgname-$pkgver"
}

package() {
    cd "$pkgname-$pkgver"
    local basedir="${pkgdir}/usr/bin"
    install -Dm755 "target/release/gleam" "${basedir}/gleam"
}