mirror of
https://github.com/ivabus/pantry
synced 2024-11-29 19:55:06 +03:00
bf2ab7afc2
* new file: projects/gnu.org/libmicrohttpd/package.yml new file: projects/gnu.org/libmicrohttpd/simplepost.c * wip
34 lines
740 B
YAML
34 lines
740 B
YAML
distributable:
|
|
url: https://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-{{version}}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
url: https://ftp.gnu.org/gnu/libmicrohttpd/
|
|
match: /libmicrohttpd-\d+\.\d+\.\d+\.tar\.gz/
|
|
strip:
|
|
- /^libmicrohttpd-/
|
|
- /\.tar\.gz$/
|
|
|
|
dependencies:
|
|
gnu.org/libunistring: ^1
|
|
|
|
build:
|
|
script:
|
|
- ./configure $ARGS
|
|
- make --jobs {{ hw.concurrency }} install
|
|
env:
|
|
ARGS:
|
|
- --disable-dependency-tracking
|
|
- --disable-silent-rules
|
|
- --prefix={{prefix}}
|
|
|
|
test:
|
|
dependencies:
|
|
curl.se: '*'
|
|
script:
|
|
- cc test.c -lmicrohttpd -o test
|
|
- ./test &
|
|
- echo $! > test.pid
|
|
- sleep 1
|
|
- curl -L http://localhost:8888/ | grep 'namepost'
|
|
- kill $(cat test.pid)
|