# Maintainer: Juliette Cordor pkgname=ignoreit pkgver=2.4.8 pkgrel=1 makedepends=('rust' 'cargo') arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64') pkgdesc="Quickly load .gitignore templates" license=('MIT') depends=('openssl') url="https://github.com/jewlexx/ignoreit" source=("$pkgname-$pkgver.tar.gz::https://github.com/jewlexx/ignoreit/archive/v$pkgver.tar.gz") sha256sums=('09cc1d913b3d0564174a4b7671aa69fcab0d5185a77e4df29d5e2ae83d7ef948') # Generated in accordance to https://wiki.archlinux.org/title/Rust_package_guidelines. # Might require further modification depending on the package involved. prepare() { cd "$srcdir/$pkgname-$pkgver" cargo fetch --locked --target "$CARCH-unknown-linux-gnu" } build() { cd "$srcdir/$pkgname-$pkgver" export RUSTUP_TOOLCHAIN=stable export CARGO_TARGET_DIR=target cargo build --frozen --release --all-features } check() { cd "$srcdir/$pkgname-$pkgver" export RUSTUP_TOOLCHAIN=stable cargo test --frozen --all-features } package() { cd "$srcdir/$pkgname-$pkgver" install -Dm0755 -t "$pkgdir/usr/bin/" "target/release/$pkgname" }