blob: ede5cf76351fb5a3aec53be1727fcee9025ed2c3 (
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
36
37
38
39
40
41
42
43
44
|
# Maintainer: wackbyte <wackbyte@protonmail.com>
# Contributor: George Rawlinson <grawlinson@archlinux.org>
pkgname=uiua
pkgver=0.13.0
pkgrel=2
pkgdesc='A stack-based array programming language'
arch=('aarch64' 'arm' 'armv6h' 'armv7h' 'i686' 'x86_64')
url='https://www.uiua.org/'
license=('MIT')
depends=('alsa-lib' 'gcc-libs' 'glibc' 'libffi')
makedepends=('cargo' 'clang' 'git')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/uiua-lang/uiua/archive/${pkgver}.tar.gz")
b2sums=('e56589ce6f576e9fd98e874a7fc65b2f74f759fe76febd86ec2448cf15d4c65439c3eb6003015b0ef6974fa037a42aa38cfc2d7cc8dcc34175cce188d9b7ac71')
options=(!lto)
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd "${pkgname}-${pkgver}"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd "${pkgname}-${pkgver}"
cargo build --frozen --release 'full system'
}
check() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd "${pkgname}-${pkgver}"
cargo test --frozen 'full system'
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm755 -t "${pkgdir}/usr/bin" "target/release/${pkgname}"
install -Dm644 -t "${pkgdir}/usr/share/licenses/${pkgname}" license
}
|