summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a9bb99cdff4f4ac2e81ec033c9f49a49ae800813 (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
# Maintainer: Nelson Estevão <nelsonmestevao@proton.me>

pkgname="livebook"
pkgver="0.12.1"
pkgrel="1"
pkgdesc="Automate code & data workflows with interactive Elixir notebooks"
arch=("x86_64")
url="https://livebook.dev"
license=("Apache-2.0")
conflicts=("$pkgname")
provides=("$pkgname")
depends=("elixir")
makedepends=("elixir")

build() {
    mix local.hex --force
    mix local.rebar --force
    mix escript.install hex livebook "$pkgver"
}

check() {
    "$HOME/.mix/escripts/livebook" --version
}

package() {
    # Copy the installed package to the package directory
    mkdir -p "$pkgdir/usr/bin"
    cp -r "$HOME/.mix/escripts/livebook" "$pkgdir/usr/bin"
}