# Maintainer: Clar Charr pkgname=forever pkgver=1.0.2 pkgrel=1 pkgdesc="Program which loops forever." arch=(i686 x86_64) url="https://github.com/clarcharr/$pkgname" license=(CC0) makedepends=(rust) source=(git+https://github.com/clarcharr/$pkgname#$pgkver) sha256sums=(SKIP) validpgpkeys=(4BDA23A98EE4E049CBC3BA6C69DA5B388573EE35) _binaries=(forever) prepare() { cd $pkgname git tag --verify $pkgver } build() { cd "$srcdir/$pkgname" cargo build --release } package() { cd "$pkgdir" mkdir -p usr/bin for binary in ${_binaries[@]}; do install -m755 "$srcdir/$pkgname/target/release/$binary" usr/bin/$binary done }