new file: projects/sourceforge.net/potrace/package.yml

This commit is contained in:
Andrii Riabchenko 2024-01-09 22:33:22 +02:00 committed by Jacob Heider
parent 2454f73780
commit b7c913d08b

View file

@ -0,0 +1,31 @@
distributable:
url: https://potrace.sourceforge.net/download/{{version.marketing}}/potrace-{{version.marketing}}.tar.gz
strip-components: 1
versions:
url: https://potrace.sourceforge.net/
match: /potrace-\d+\.\d+\.tar\.gz/
strip:
- /^potrace-/
- /\.tar\.gz/
dependencies:
zlib.net: ^1
build:
script:
- ./configure $ARGS
- make --jobs {{ hw.concurrency }} install
env:
ARGS:
- --disable-dependency-tracking
- --prefix={{prefix}}
- --with-libpotrace
provides:
- bin/potrace
- bin/mkbitmap
test:
dependencies:
curl.se: '*'
script:
- curl -L https://potrace.sourceforge.net/img/head.pbm -o head.pbm
- potrace head.pbm -o test.eps
- ls | grep test.eps
- potrace --version | grep {{version.marketing}}