diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2024-04-04 00:40:06 +0200 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2024-04-04 01:16:14 +0200 |
commit | 239a830981b6641a56b44e192b7ac60e38942a3f (patch) | |
tree | 8223ebb140b3ddca629ee2bab2a49855f0ba5e97 /examples/recipes/zlib.yml | |
parent | b2ce46f9e4130f9e30d2eaa486558bf16af31b50 (diff) | |
download | rebel-239a830981b6641a56b44e192b7ac60e38942a3f.tar rebel-239a830981b6641a56b44e192b7ac60e38942a3f.zip |
examples: always set version in content, not filename
Diffstat (limited to 'examples/recipes/zlib.yml')
-rw-r--r-- | examples/recipes/zlib.yml | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/examples/recipes/zlib.yml b/examples/recipes/zlib.yml new file mode 100644 index 0000000..65c0d19 --- /dev/null +++ b/examples/recipes/zlib.yml @@ -0,0 +1,52 @@ +meta: + version: '1.3' +tasks: + unpack: + fetch: + - name: '{{basename}}-{{version}}.tar.gz' + sha256: 'ff0ba4c292013dbc27530b3a81e1f9a813cd39de01ca5e0f8bf355702efa593e' + run: | + tar xf {{dldir}}/{{basename}}-{{version}}.tar.gz + + configure: + args: + host: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + run: | + mkdir {{basename}}-build + cd {{basename}}-build + ../{{basename}}-{{version}}/configure \ + --prefix={{host.prefix}} + find -name configure.log -delete + + compile: + args: + host: 'platform' + inherit: + task: 'configure' + run: | + cd {{basename}}-build + make + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + run: | + cd {{basename}}-build + make DESTDIR={{destdir}} install + rm {{destdir}}{{host.prefix}}/lib/*.a + |