# Maintainer: Hoang Nguyen pkgname=nickel pkgver=1.1.1 pkgrel=0 pkgdesc="Generic configuration language for less" url="https://nickel-lang.org/" # s390x: nix crate fails to build arch="all !s390x" license="MIT" makedepends="cargo" checkdepends="python3" subpackages="$pkgname-doc $pkgname-language-server:_langserver" options="net" source="$pkgname-$pkgver.tar.gz::https://github.com/tweag/nickel/archive/refs/tags/$pkgver.tar.gz" prepare() { default_prepare cargo fetch --target="$CTARGET" --locked } build() { cargo build --frozen --release --workspace \ --bin nickel --bin nls } check() { cargo test --frozen --workspace } package() { install -Dm755 -t "$pkgdir"/usr/bin/ \ target/release/nickel \ target/release/nls install -Dm644 doc/manual/*.md -t "$pkgdir"/usr/share/doc/$pkgname/ } _langserver() { amove usr/bin/nls } sha512sums=" adc13a668726d422c2db4b8088c52cc1602d8499fa0ba0bc15b03afc4f1827479fae25637dd6d439ed43962b3294fec0bc7c154e539ecca1d41ed9d9db70c2aa nickel-1.1.1.tar.gz "