summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7455533c3fdf314f592bbf4f91a3902670567bb0 (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
35
36
37
38
39
40
41
42
43
44
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Chmouel Boudjnah <chmouel@chmouel.com>

pkgname='lazyworktree-bin'
pkgver=1.45.1
pkgrel=1
pkgdesc='lazyworktree - A TUI tool to manage git worktrees'
url='https://github.com/chmouel/lazyworktree'
arch=('aarch64' 'x86_64')
license=('Apache 2.0')
provides=('lazyworktree')
conflicts=('lazyworktree')
depends=('git' 'git-delta' 'lazygit' 'less' 'tmux')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/chmouel/lazyworktree/releases/download/v${pkgver}/lazyworktree_Linux_arm64.tar.gz")
sha256sums_aarch64=('cd82d58dbcd335053c7612a573d36cf87506eb97331674789e8e4e9246d44b65')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/chmouel/lazyworktree/releases/download/v${pkgver}/lazyworktree_Linux_x86_64.tar.gz")
sha256sums_x86_64=('5afef893aea047736e8bc72e543b4d69ac1a409680bfa37c20308d731be2400b')

package() {
  # bin
  install -Dm755 "./lazyworktree" "${pkgdir}/usr/bin/lazyworktree"

  # license
  install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/lazyworktree/LICENSE"

  # config example
  install -Dm644 "./config.example.yaml" "${pkgdir}/usr/share/doc/lazyworktree/config.example.yaml"

  # shell functions
  install -Dm644 "./shell/functions.bash" "${pkgdir}/usr/share/lazyworktree/functions.bash"
  install -Dm644 "./shell/functions.zsh" "${pkgdir}/usr/share/lazyworktree/functions.zsh"
  install -Dm644 "./shell/functions.fish" "${pkgdir}/usr/share/lazyworktree/functions.fish"

  # man page
  install -Dm644 "./lazyworktree.1" "${pkgdir}/usr/share/man/man1/lazyworktree.1"

  # completions
  install -Dm644 "./completions/lazyworktree.bash" "${pkgdir}/usr/share/bash-completion/completions/lazyworktree"
  install -Dm644 "./completions/lazyworktree.zsh" "${pkgdir}/usr/share/zsh/site-functions/_lazyworktree"
  install -Dm644 "./completions/lazyworktree.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/lazyworktree.fish"
  install -Dm644 "./completions/lazyworktree.ps1" "${pkgdir}/usr/share/powershell/Modules/lazyworktree/lazyworktree.ps1"
}