blob: 21b549b29e673390778256734c9c30d7db7252a3 (
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.13.0.r1.gd360def7
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')
makedepends=('cargo' '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 --all-features
}
check() {
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cd $_pkgname
cargo test --frozen --all-features
}
package() {
cd $_pkgname
install -Dm755 -t "${pkgdir}/usr/bin" "target/release/${_pkgname}"
install -Dm644 -t "${pkgdir}/usr/share/licenses/${_pkgname}" license
}
|