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