From 239a830981b6641a56b44e192b7ac60e38942a3f Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 4 Apr 2024 00:40:06 +0200 Subject: examples: always set version in content, not filename --- examples/recipes/gmp.yml | 55 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 examples/recipes/gmp.yml (limited to 'examples/recipes/gmp.yml') diff --git a/examples/recipes/gmp.yml b/examples/recipes/gmp.yml new file mode 100644 index 0000000..f2585c2 --- /dev/null +++ b/examples/recipes/gmp.yml @@ -0,0 +1,55 @@ +meta: + version: '6.3.0' +tasks: + unpack: + fetch: + - name: '{{basename}}-{{version}}.tar.xz' + sha256: 'a3c2b80201b89e68616f4ad30bc66aee4927c3ce50e33929ca819d5c43538898' + run: | + tar xf {{dldir}}/{{basename}}-{{version}}.tar.xz + + 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 \ + --build={{build.gnu_triplet}} \ + --host={{host.gnu_triplet}} \ + --prefix={{host.prefix}} + find -name config.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 + rm {{destdir}}{{host.prefix}}/lib/*.la + -- cgit v1.2.3