diff --git a/projects/pngquant.org/lib/package.yml b/projects/pngquant.org/lib/package.yml new file mode 100644 index 00000000..f83ebbf7 --- /dev/null +++ b/projects/pngquant.org/lib/package.yml @@ -0,0 +1,25 @@ +distributable: + url: https://github.com/ImageOptim/libimagequant/archive/{{version}}.tar.gz + strip-components: 1 + +versions: + github: ImageOptim/libimagequant/tags + +display-name: libimagequant + +build: + dependencies: + tea.xyz/gx/cc: c99 + tea.xyz/gx/make: '*' + github.com/lu-zero/cargo-c: '*' + rust-lang.org/cargo: '*' + + working-directory: imagequant-sys + script: cargo cinstall --prefix {{prefix}} + +test: + dependencies: + tea.xyz/gx/cc: c99 + script: + - cc test.c -limagequant -o test + - ./test \ No newline at end of file diff --git a/projects/pngquant.org/lib/test.c b/projects/pngquant.org/lib/test.c new file mode 100644 index 00000000..f56b55dc --- /dev/null +++ b/projects/pngquant.org/lib/test.c @@ -0,0 +1,11 @@ +#include + +int main() { + liq_attr *attr = liq_attr_create(); + if (!attr) { + return 1; + } else { + liq_attr_destroy(attr); + return 0; + } +} \ No newline at end of file