blob: 24db98b34315d3cf0f4bdd969228b97a348987ba (
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
45
46
47
48
49
50
51
|
# Maintainer: wackbyte <wackbyte@protonmail.com>
_pkgname=uiua
pkgname=uiua-git
pkgver=0.14.0.dev.3.r1.ga56d089f
pkgrel=1
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')
provides=("uiua=${pkgver}")
conflicts=('uiua')
source=("${_pkgname}::git+https://github.com/uiua-lang/uiua")
md5sums=('SKIP')
options=(!lto)
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
export RUSTUP_TOOLCHAIN=stable
cd $_pkgname
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd $_pkgname
cargo build --frozen --release --features 'full system'
}
check() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd $_pkgname
cargo test --frozen --features 'full system'
}
package() {
cd $_pkgname
install -Dm755 -t "${pkgdir}/usr/bin" "target/release/${_pkgname}"
install -Dm644 -t "${pkgdir}/usr/share/licenses/${_pkgname}" license
}
|