community/minify: add 2.12.1

master
parent 4e9d8e056e
commit c04d21f332
  1. 35
      community/minify/APKBUILD

@ -0,0 +1,35 @@
# Maintainer: Wesley van Tilburg <justwesley@protonmail.com>
pkgname=minify
pkgver=2.12.1
pkgrel=0
pkgdesc="Minifier CLI for HTML, CSS, JS, JSON, SVG and XML"
url="https://github.com/tdewolff/minify"
arch="all"
options="net"
license="MIT"
makedepends="go bash"
subpackages="$pkgname-bash-completion"
source="$pkgname-$pkgver.tar.gz::https://github.com/tdewolff/minify/archive/v$pkgver.tar.gz"
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
build() {
mkdir build
go build -o build ./cmd/minify
}
check() {
go test ./...
}
package() {
install -Dm755 ./build/minify -t "$pkgdir"/usr/bin
install -Dm644 ./cmd/minify/bash_completion "$pkgdir"/usr/share/bash-completion/completions/minify
}
sha512sums="
f6d121663ab0e29f24949838bb05a2396063e607978a5d126a6d5601bf0d83eb22131c2bbe5a9bc85344c265df0c20c3c1e1c152da806fb54023b804b7082199 minify-2.12.1.tar.gz
"
Loading…
Cancel
Save