From 3fbe53aec0f340a90858265ca8f890314fa5d523 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 30 Oct 2021 00:21:04 +0200 Subject: examples: move recipes to subdirectory --- examples/recipes/e2fsprogs.yml | 54 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 examples/recipes/e2fsprogs.yml (limited to 'examples/recipes/e2fsprogs.yml') diff --git a/examples/recipes/e2fsprogs.yml b/examples/recipes/e2fsprogs.yml new file mode 100644 index 0000000..b8377f0 --- /dev/null +++ b/examples/recipes/e2fsprogs.yml @@ -0,0 +1,54 @@ +meta: + version: '1.46.4' +tasks: + unpack: + fetch: + - name: '{{pn}}-{{pv}}.tar.xz' + sha256: 'b11042533c1b1dcf17512f0da48e05b0c573dada1dd8b762864d10f4dc399713' + run: | + tar xf {{dldir}}/{{pn}}-{{pv}}.tar.xz + + configure: + args: + host: 'platform' + inherit: + task: 'unpack' + build_depends: + - recipe: 'toolchain' + task: 'build_depends' + depends: + - recipe: 'toolchain' + task: 'depends' + run: | + mkdir {{pn}}-build + cd {{pn}}-build + ../{{pn}}-{{pv}}/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 {{pn}}-build + make + find -name config.log -delete + + install: + args: + host: 'platform' + inherit: + task: 'compile' + output: + default: + runtime_depends: + - recipe: 'toolchain' + task: 'depends' + run: | + cd {{pn}}-build + make DESTDIR={{destdir}} install + -- cgit v1.2.3