mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
pngquant.org/lib (#2287)
* new file: projects/pngquant.org/lib/package.yml new file: projects/pngquant.org/lib/test.c * script shorter
This commit is contained in:
parent
bb01b94787
commit
70373666f1
2 changed files with 36 additions and 0 deletions
25
projects/pngquant.org/lib/package.yml
Normal file
25
projects/pngquant.org/lib/package.yml
Normal file
|
@ -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
|
11
projects/pngquant.org/lib/test.c
Normal file
11
projects/pngquant.org/lib/test.c
Normal file
|
@ -0,0 +1,11 @@
|
|||
#include <libimagequant.h>
|
||||
|
||||
int main() {
|
||||
liq_attr *attr = liq_attr_create();
|
||||
if (!attr) {
|
||||
return 1;
|
||||
} else {
|
||||
liq_attr_destroy(attr);
|
||||
return 0;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue