mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
38 lines
831 B
YAML
38 lines
831 B
YAML
distributable:
|
|
url: https://www.oberhumer.com/opensource/lzo/download/lzo-{{ version.major }}.{{ version.minor }}.tar.gz
|
|
strip-components: 1
|
|
|
|
versions:
|
|
url: https://www.oberhumer.com/opensource/lzo/download/
|
|
match: /lzo-\d+\.\d+\.tar\.gz/
|
|
strip:
|
|
- /lzo-/
|
|
- /.tar.gz/
|
|
|
|
build:
|
|
script: |
|
|
./configure $ARGS
|
|
make
|
|
make check
|
|
make --jobs {{ hw.concurrency }} install
|
|
env:
|
|
ARGS:
|
|
- --disable-dependency-tracking
|
|
- --enable-shared
|
|
- --prefix="{{prefix}}"
|
|
|
|
test:
|
|
script: |
|
|
mv $FIXTURE test.c
|
|
gcc test.c -o test
|
|
test "$(./test)" = 'Testing LZO v{{ version.major }}.{{ version.minor }} in tea.'
|
|
fixture: |
|
|
#include <lzo/lzoconf.h>
|
|
#include <stdio.h>
|
|
int main()
|
|
{
|
|
printf("Testing LZO v%s in tea.",
|
|
LZO_VERSION_STRING);
|
|
return 0;
|
|
}
|