wipe/dist/arch/PKGBUILD

37 lines
849 B
Bash
Raw Normal View History

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