mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 19:43:24 -04:00
dev-util/minify: new package, add 2.24.11
Signed-off-by: Pavel Sobolev <contact@paveloom.dev>
This commit is contained in:
32
dev-util/minify/minify-2.24.11.ebuild
Normal file
32
dev-util/minify/minify-2.24.11.ebuild
Normal file
@@ -0,0 +1,32 @@
|
||||
# Copyright 1999-2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit bash-completion-r1 go-module
|
||||
|
||||
DESCRIPTION="Go minifier for web formats"
|
||||
HOMEPAGE="https://go.tacodewolff.nl/minify"
|
||||
SRC_URI="
|
||||
https://github.com/tdewolff/minify/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
https://gitlab.com/api/v4/projects/69517529/packages/generic/${PN}/${PV}/${P}-deps.tar.xz
|
||||
"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
src_compile() {
|
||||
ego build \
|
||||
-ldflags "-s -w -X 'main.Version=${PV}'" -trimpath \
|
||||
-o _minify ./cmd/minify
|
||||
}
|
||||
|
||||
src_test() {
|
||||
ego test ./...
|
||||
}
|
||||
|
||||
src_install() {
|
||||
newbin _minify minify
|
||||
dobashcomp cmd/minify/bash_completion
|
||||
}
|
||||
Reference in New Issue
Block a user