summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ab82105dc5fb091aa2a1b042cec178a95418b057 (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.26.1"
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=('f495617ae9a28568db9437c6a31a675e868f87537a8b65bd38ca185d461d3c1e')
sha512sums=('c0f1b1e0c148563bf5f6144b67f6bbe74459d84714373e4b0a9ff6ace0c1fa5dbbc1d34666f86e6732ee051862c025ef74aa8ca0529c38618d81e6e8ea8d11ba')

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