pantry/projects/gnu.org/libmicrohttpd/package.yml
Andrew bf2ab7afc2
+gnu.org/libmicrohttpd (#5565)
* new file:   projects/gnu.org/libmicrohttpd/package.yml
	new file:   projects/gnu.org/libmicrohttpd/simplepost.c

* wip
2024-03-13 14:29:20 -04:00

35 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)