aarty/archpackage/PKGBUILD

42 lines
982 B
Bash
Raw Normal View History

2022-10-03 21:41:59 +00:00
# Maintainer: Anas Elgarhy <anas.elgarhy.dev@gmail.com>
pkgname=aarty
pkgver=0.2.0
2022-10-03 21:41:59 +00:00
pkgrel=1
epoch=
pkgdesc="A simple CLI tool to convert the images to ASCII art 🦀💙"
arch=(x86_64)
url="https://github.com/anas-elgarhy/aarty"
license=('MIT')
makedepends=(cargo)
provides=(aarty)
conflicts=()
replaces=(aarty)
install=
changelog=
source=("$pkgname-$pkgver.tar.gz::https://static.crates.io/crates/$pkgname/$pkgname-$pkgver.crate")
noextract=()
prepare() {
2022-10-04 10:41:48 +00:00
cd "$pkgname-$pkgver"
2022-10-03 21:41:59 +00:00
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}
build() {
2022-10-04 10:41:48 +00:00
cd "$pkgname-$pkgver"
2022-10-03 21:41:59 +00:00
export RUSTUP_TOOLCHAIN=stable
export CARGO_TARGET_DIR=target
cargo build --frozen --release --all-features
}
check() {
2022-10-04 10:41:48 +00:00
cd "$pkgname-$pkgver"
2022-10-03 21:41:59 +00:00
export RUSTUP_TOOLCHAIN=stable
cargo test --frozen --all-features
}
package() {
2022-10-04 10:41:48 +00:00
cd "$pkgname-$pkgver"
2022-10-03 21:41:59 +00:00
sudo install -Dm0755 -t "/usr/bin/" "target/release/$pkgname"
}
2022-10-11 10:52:23 +00:00
sha256sums=('aa8cdf26ac78adf035088d6e12730a593e17a040f54ebfe39f59fc9c438be1c4')