30 lines
702 B
Bash
30 lines
702 B
Bash
# Maintainer: Firstname Lastname <email@example.org>
|
|
pkgname=crete
|
|
pkgver=0.1.0
|
|
pkgrel=1
|
|
pkgdesc=''
|
|
url='https://git.huizinga.dev/infra/crete'
|
|
license=()
|
|
makedepends=('cargo-nightly')
|
|
depends=()
|
|
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
|
|
source=()
|
|
b2sums=()
|
|
|
|
prepare() {
|
|
export RUSTUP_TOOLCHAIN=nightly
|
|
cargo fetch --locked --target host-tuple
|
|
}
|
|
|
|
build() {
|
|
export RUSTUP_TOOLCHAIN=nightly
|
|
export CARGO_TARGET_DIR=target
|
|
cargo build --frozen --release --all-features
|
|
cargo run --bin $pkgname -- shell-completions > _$pkgname
|
|
}
|
|
|
|
package() {
|
|
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname"
|
|
install -Dm0755 -t "$pkgdir/usr/share/zsh/site-functions" "_$pkgname"
|
|
}
|