# Maintainer: Brocode pkgname=goat pkgver=__VERSION__ pkgrel=__PKGREL__ pkgdesc="better sleep" arch=('x86_64') url="https://github.com/brocode/goat" license=('custom:WTFPL') makedepends=('cargo') source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz") sha256sums=('__SHA256__') build() { cd "$pkgname-$pkgver" cargo build --release --locked --all-features } check() { cd "$pkgname-$pkgver" cargo test --release --locked } package() { cd "$pkgname-$pkgver" install -Dm 755 "target/release/$pkgname" -t "$pkgdir/usr/bin" install -Dm 644 README.org -t "$pkgdir/usr/share/doc/$pkgname" install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname" }