summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: eb0a69c96f8787feb8e7a1ee0b1e18bbed94e6d2 (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
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: Gabe Cook <gabe565@gmail.com>

pkgname='moreutils-go-bin'
pkgver=0.4.3
pkgrel=1
pkgdesc='A Go rewrite of moreutils: A collection of the Unix tools that nobody thought to write long ago when Unix was young.'
url='https://github.com/gabe565/moreutils'
arch=('aarch64' 'armv7h' 'x86_64')
license=('GPL-3.0')
provides=('moreutils')
conflicts=('moreutils-go')

source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/gabe565/moreutils-go/releases/download/v0.4.3/moreutils-go_0.4.3_linux_arm64.tar.gz")
sha256sums_aarch64=('a5b6d2647c55a2e88b1d5912430bf340d9dfd4f4239ed14914d89b4bef31dc11')

source_armv7h=("${pkgname}_${pkgver}_armv7h.tar.gz::https://github.com/gabe565/moreutils-go/releases/download/v0.4.3/moreutils-go_0.4.3_linux_armv7.tar.gz")
sha256sums_armv7h=('d9bac56273ec8b0f84e10526639a2f1f19faa22dc1ca497cc10c1120c3b46dd0')

source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/gabe565/moreutils-go/releases/download/v0.4.3/moreutils-go_0.4.3_linux_amd64.tar.gz")
sha256sums_x86_64=('d07db7d195884fd9fd08c927df1058f173831d5bdfafa8437763bce60de23090')

package() {
  # bin
  install -Dm755 moreutils "${pkgdir}/usr/bin/moreutils"
  cp -a links/* "${pkgdir}/usr/bin"
  # license
  install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/moreutils/LICENSE"
  # man pages
  install -Dm644 -t"${pkgdir}/usr/share/man/man1" manpages/*
  # completions
  install -Dm644 -t"${pkgdir}/usr/share/bash-completion/completions" completions/bash/*
  install -Dm644 -t"${pkgdir}/usr/share/zsh/site-functions" completions/zsh/*
  install -Dm644 -t"${pkgdir}/usr/share/fish/vendor_completions.d" completions/fish/*
}