wipe/dist/PKGBUILD

37 lines
849 B
Bash

# Maintainer: Rico Riedel <rico.riedel@protonmail.ch>
pkgname='terminal-wipe-git'
pkgver='1.0.0'
pkgrel='3'
pkgdesc='Wipe your terminal with a random animation.'
arch=('x86_64')
url='https://github.com/ricoriedel/wipe'
license=('MIT')
makedepends=('cargo')
conflicts=('wipe')
source=('git+https://www.github.com/ricoriedel/wipe.git')
sha256sums=('SKIP')
prepare() {
cd wipe
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
cd wipe
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
cd wipe
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features
}
package() {
cd wipe
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" 'LICENSE'
install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/wipe"
}