~garritfra/antimony

ref: 5e8aad974f24e782bf8ee9319a238ee1aa0892a0 antimony/contrib/PKGBUILD -rw-r--r-- 831 bytes
5e8aad97Garrit Franke fix(ci): deploy action 1 year, 1 month ago
                                                                                
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
36
37
38
39
40
41
42
43
# Maintainer: Garrit Franke <garrit@slashdev.space>
# Contributor: Alexey Yerin <yyp@disroot.org>
pkgname="antimony-git"
pkgver=v0.5.1.r1.fd08c6a
pkgrel=1
pkgdesc="The bullshit-free programming language"
url="https://github.com/antimony-lang/antimony"
license=("Apache")
arch=("x86_64" "pentium4" "i686")
makedepends=("git" "cargo")
optdepends=(
	"node: Node.js backend"
	"llvm: LLVM backend"
)
provides=("antimony")
source=(
	"antimony::git+https://github.com/antimony-lang/antimony"
)
sha256sums=("SKIP")

pkgver() {
	cd "${srcdir}/antimony"

	printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
	cd "${srcdir}/antimony"

	cargo build --release
}

check() {
	cd "${srcdir}/antimony"

	cargo test
}

package() {
	cd "${srcdir}/antimony"

	install -Dm755 target/release/sb "${pkgdir}/usr/bin/sb"
}