summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9eccc7a01162feddab2396b5b1df6804bdcc6d08 (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.34.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=('731a34612125ccbfd0caac0a9e6cebd255ec536176ef757203f3cdb8b9e2dfd7')
sha512sums=('7149827a89ef2cc228c412eb94194a3f35f6d9cddcc0bfc719d70f2e18895abdd06da5352840027f0692dea17bbf6138c6a5b2aee3fea10c0a7c17499f489142')

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