diff --git a/.bldr.toml b/.bldr.toml index 8a614a67d7..8ba05dc349 100644 --- a/.bldr.toml +++ b/.bldr.toml @@ -875,6 +875,8 @@ plan_path = "php5" plan_path = "pixman" [pkg-config] plan_path = "pkg-config" +[pngquant] +plan_path = "pngquant" [polipo] plan_path = "polipo" [ponysay] diff --git a/CODEOWNERS b/CODEOWNERS index b93b1bb212..928dc0f330 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -153,6 +153,7 @@ nmap @defilan nuget @mwrock optipng @predominant pango @rsertelon +pngquant @predominant protobuf-cpp @afiune rabbitmqadmin @predominant redis @irvingpop diff --git a/pngquant/README.md b/pngquant/README.md new file mode 100644 index 0000000000..b127b13143 --- /dev/null +++ b/pngquant/README.md @@ -0,0 +1,27 @@ +# Habitat package: pngquant + +Lossy PNG compressor. + +## Maintainers + +The Habitat Maintainers (humans@habitat.sh). + +## Type of package + +Library package. Include this plan as a runtime or build dependency for plans that require `pngquant`. + +## Usage + +``` +pkg_deps=( + core/pngquant +) +``` + +or + +``` +pkg_build_deps=( + core/pngquant +) +``` diff --git a/pngquant/plan.sh b/pngquant/plan.sh new file mode 100644 index 0000000000..6966f031d6 --- /dev/null +++ b/pngquant/plan.sh @@ -0,0 +1,31 @@ +pkg_name=pngquant +pkg_origin=core +pkg_version="2.11.7" +pkg_maintainer="The Habitat Maintainers " +pkg_license=("GPL-3.0-only") +pkg_source="https://github.com/kornelski/${pkg_name}/archive/${pkg_version}.tar.gz" +pkg_shasum="0ca09a1f253b264e5aab8477b7f0e3cde51d9f88ed668b38ae057ced24076bda" +pkg_deps=( + core/coreutils +) +pkg_build_deps=( + core/make + core/gcc + core/libpng + core/zlib + core/pkg-config + core/libimagequant +) +pkg_bin_dirs=(bin) +pkg_description="Lossy PNG compressor" +pkg_upstream_url="https://pngquant.org" + +do_build() { + fix_interpreter "configure" core/coreutils bin/env + do_default_build +} + +do_install() { + cp COPYRIGHT "${pkg_prefix}" + do_default_install +}