Package Details: goat 0.10.0-2

Git Clone URL: https://aur.archlinux.org/goat.git (read-only, click to copy)
Package Base: goat
Description: better sleep
Upstream URL: https://github.com/brocode/goat
Keywords: cli replacement sleep
Licenses: custom:WTFPL
Submitter: mriehl
Maintainer: mriehl (bomgar)
Last Packager: bomgar
Votes: 3
Popularity: 0.000000
First Submitted: 2018-03-23 09:16
Last Updated: 2020-11-03 12:39

Required by (0)

Sources (1)

Latest Comments

orhun commented on 2020-10-30 13:04

You should build the package from source. -bin packages install the pre-compiled binaries. See: https://aur.archlinux.org/packages/goat-bin/

Your PKGBUILD should be something like:

pkgname=goat
pkgver=0.10.0
pkgrel=1
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")
sha512sums=('SKIP') // add checksums

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"
}