From a488b37a22b72bdcd7b58102387fea98b82918e1 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 6 Apr 2024 00:19:09 +0200 Subject: examples: use {{name}} instead of {{basename}} {{name}} is usually the better choice for references in the scripts, as it can be overridden. --- examples/recipes/mpc/build.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'examples/recipes/mpc/build.yml') diff --git a/examples/recipes/mpc/build.yml b/examples/recipes/mpc/build.yml index 0d17661..816bed0 100644 --- a/examples/recipes/mpc/build.yml +++ b/examples/recipes/mpc/build.yml @@ -3,10 +3,10 @@ meta: tasks: unpack: fetch: - - name: '{{basename}}-{{version}}.tar.gz' + - name: '{{name}}-{{version}}.tar.gz' sha256: 'ab642492f5cf882b74aa0cb730cd410a81edcdbec895183ce930e706c1c759b8' run: | - tar xf {{dldir}}/{{basename}}-{{version}}.tar.gz + tar xf {{dldir}}/{{name}}-{{version}}.tar.gz configure: args: @@ -22,9 +22,9 @@ tasks: - recipe: 'mpfr' task: 'install' run: | - mkdir {{basename}}-build - cd {{basename}}-build - ../{{basename}}-{{version}}/configure \ + mkdir {{name}}-build + cd {{name}}-build + ../{{name}}-{{version}}/configure \ --build={{build.gnu_triplet}} \ --host={{host.gnu_triplet}} \ --prefix={{host.prefix}} @@ -36,7 +36,7 @@ tasks: inherit: task: 'configure' run: | - cd {{basename}}-build + cd {{name}}-build make install: @@ -52,7 +52,7 @@ tasks: - recipe: 'mpfr' task: 'install' run: | - cd {{basename}}-build + cd {{name}}-build make DESTDIR={{destdir}} install rm {{destdir}}{{host.prefix}}/lib/*.a rm {{destdir}}{{host.prefix}}/lib/*.la -- cgit v1.2.3