summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a55e6080a1f84cfdcb3d46b24dddf1df9493671c (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
# This file was generated by GoReleaser. DO NOT EDIT.
# Maintainer: tarampampam <murmur at cats dot rulez>

pkgname='tinifier'
pkgver=5.0.2
pkgrel=1
pkgdesc='CLI tool for compressing images using the TinyPNG'
url='https://github.com/tarampampam/tinifier'
arch=('aarch64' 'x86_64')
license=('MIT')
provides=('tinifier')
conflicts=('tinifier')
makedepends=('go')
source=("${pkgname}_${pkgver}.tar.gz::https://github.com/tarampampam/tinifier/releases/download/v5.0.2/tinifier_v5.0.2_sources.tar.gz")
sha256sums=('37e70cc3a4020c25431f5628aa4a46dfac3b3de284c973b17225cbb0048f35ee')
prepare() {
  go mod download
}
build() {
  go generate -skip readme ./...

  CGO_ENABLED=0 go build \
  -trimpath \
  -ldflags "-s -w -X gh.tarampamp.am/tinifier/v5/internal/version.version=${pkgver}" \
  -o ./tinifier \
  ./cmd/tinifier/
}
package() {
  install -Dm755 "./tinifier" "$pkgdir/usr/bin/tinifier"
}