summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f308a82fb19e470b3586df7a93325759bc88baa1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Carlos Alexandro Becker <carlos@becker.software>

pkgname='timer-bin'
pkgver=1.4.5
pkgrel=1
pkgdesc='Timer is like sleep, but reports progress.'
url='https://github.com/caarlos0/timer'
arch=('aarch64' 'x86_64')
license=('MIT')
provides=('timer')
conflicts=('timer')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/caarlos0/timer/releases/download/v1.4.5/timer_linux_arm64.tar.gz")
sha256sums_aarch64=('f868378bf2539f227e8526678419b59acb4f9b924d205951c31ebe073964fa1e')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/caarlos0/timer/releases/download/v1.4.5/timer_linux_amd64.tar.gz")
sha256sums_x86_64=('7b7bf347e41e00fdf0ff8c8ac0457c0e68d5a7fde428f0143fe3ff7f81a0dc80')

package() {
  # bin
  install -Dm755 "./timer" "${pkgdir}/usr/bin/timer"
  # license
  install -Dm644 "./LICENSE.md" "${pkgdir}/usr/share/licenses/timer/LICENSE"
  # completions
  mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
  mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
  mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
  install -Dm644 "./completions/timer.bash" "${pkgdir}/usr/share/bash-completion/completions/timer"
  install -Dm644 "./completions/timer.zsh" "${pkgdir}/usr/share/zsh/site-functions/_timer"
  install -Dm644 "./completions/timer.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/timer.fish"
  # man pages
  install -Dm644 "./manpages/timer.1.gz" "${pkgdir}/usr/share/man/man1/timer.1.gz"
}