blob: 58974aafc337d3ea9b6e654620b5bcd2aa2b04ad (
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
45
|
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: John Mylchreest <jmylchreest@gmail.com>
pkgname='tinct-bin'
pkgver=0.3.3
pkgrel=1
pkgdesc='Generate colour palettes from images and apply system-wide theming'
url='https://github.com/jmylchreest/tinct'
arch=('aarch64' 'armv7h' 'x86_64')
license=('MIT')
provides=('tinct')
conflicts=('tinct')
source_aarch64=("${pkgname}_${pkgver}_aarch64.tar.gz::https://github.com/jmylchreest/tinct/releases/download/v${pkgver}/tinct_${pkgver}_Linux_arm64.tar.gz")
sha256sums_aarch64=('543827fda0ae6c226b0583d334f9b42a4f17703bef92ce3a4cea5e752e934718')
source_armv7h=("${pkgname}_${pkgver}_armv7h.tar.gz::https://github.com/jmylchreest/tinct/releases/download/v${pkgver}/tinct_${pkgver}_Linux_armv7.tar.gz")
sha256sums_armv7h=('f70f79fbc423f895e24a36cafee642a305721447fe89b561ad754a8ad60692ed')
source_x86_64=("${pkgname}_${pkgver}_x86_64.tar.gz::https://github.com/jmylchreest/tinct/releases/download/v${pkgver}/tinct_${pkgver}_Linux_x86_64.tar.gz")
sha256sums_x86_64=('3bcb828831dc05c4c1ef79713c331e94ba6c72ceaefb980d8433d396b35250e6')
package() {
# bin
install -Dm755 "./tinct" "${pkgdir}/usr/bin/tinct"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/tinct/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/tinct.bash" "${pkgdir}/usr/share/bash-completion/completions/tinct"
install -Dm644 "./completions/_tinct" "${pkgdir}/usr/share/zsh/site-functions/_tinct"
install -Dm644 "./completions/tinct.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/tinct.fish"
# sbom
for sbom in *.sbom.json; do
if [ -f "$sbom" ]; then
install -Dm644 "$sbom" "${pkgdir}/usr/share/doc/tinct/sbom.json"
break
fi
done
}
|