Skip to content

Commit

Permalink
Merge pull request #1602 from predominant/predominant/pngquant
Browse files Browse the repository at this point in the history
Added new plan for pngquant
  • Loading branch information
smacfarlane authored Jun 27, 2018
2 parents a2ec8fc + 85ead84 commit 92aac3c
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .bldr.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ nmap @defilan
nuget @mwrock
optipng @predominant
pango @rsertelon
pngquant @predominant
protobuf-cpp @afiune
rabbitmqadmin @predominant
redis @irvingpop
Expand Down
27 changes: 27 additions & 0 deletions pngquant/README.md
Original file line number Diff line number Diff line change
@@ -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
)
```
31 changes: 31 additions & 0 deletions pngquant/plan.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
pkg_name=pngquant
pkg_origin=core
pkg_version="2.11.7"
pkg_maintainer="The Habitat Maintainers <humans@habitat.sh>"
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
}

0 comments on commit 92aac3c

Please sign in to comment.