summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 817e602e600f8b316f13783027529ddc83531a94 (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='tasktimer-bin'
pkgver=1.9.4
pkgrel=1
pkgdesc='Task Timer (tt) is a dead simple TUI task timer'
url='https://github.com/caarlos0/tasktimer'
arch=('aarch64' 'x86_64')
license=('MIT')
provides=('tt')
conflicts=('tt')

source_aarch64=('https://github.com/caarlos0/tasktimer/releases/download/v1.9.4/tt_linux_arm64.tar.gz')
sha256sums_aarch64=('462f41c5dfe06185f8fdecbd47f294c8ff741ad6b5137ae3a4a09773f5a75a9d')

source_x86_64=('https://github.com/caarlos0/tasktimer/releases/download/v1.9.4/tt_linux_amd64.tar.gz')
sha256sums_x86_64=('a404250fd6a5756aa9d72010750fcf433e4400c3e0004d1fe7151be397546e80')

package() {
  # bin
  install -Dm755 "./tt" "${pkgdir}/usr/bin/tt"
  # license
  install -Dm644 "./LICENSE.md" "${pkgdir}/usr/share/licenses/tt/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/tt.bash" "${pkgdir}/usr/share/bash-completion/completions/tt"
  install -Dm644 "./completions/tt.zsh" "${pkgdir}/usr/share/zsh/site-functions/_tt"
  install -Dm644 "./completions/tt.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/tt.fish"
  # man pages
  install -Dm644 "./manpages/tt.1.gz" "${pkgdir}/usr/share/man/man1/tt.1.gz"
}