summaryrefslogtreecommitdiffstats
path: root/examples/recipes/e2fsprogs/build.yml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/recipes/e2fsprogs/build.yml')
-rw-r--r--examples/recipes/e2fsprogs/build.yml54
1 files changed, 54 insertions, 0 deletions
diff --git a/examples/recipes/e2fsprogs/build.yml b/examples/recipes/e2fsprogs/build.yml
new file mode 100644
index 0000000..508d1d4
--- /dev/null
+++ b/examples/recipes/e2fsprogs/build.yml
@@ -0,0 +1,54 @@
+meta:
+ version: '1.47.0'
+tasks:
+ unpack:
+ fetch:
+ - name: '{{name}}-{{version}}.tar.xz'
+ sha256: '144af53f2bbd921cef6f8bea88bb9faddca865da3fbc657cc9b4d2001097d5db'
+ run: |
+ tar xf {{dldir}}/{{name}}-{{version}}.tar.xz
+
+ configure:
+ args:
+ host: 'platform'
+ parent:
+ task: 'unpack'
+ build_depends:
+ - recipe: 'toolchain'
+ task: 'build_depends'
+ depends:
+ - recipe: 'toolchain'
+ task: 'depends'
+ run: |
+ mkdir {{name}}-build
+ cd {{name}}-build
+ ../{{name}}-{{version}}/configure \
+ --build={{build.gnu_triplet}} \
+ --host={{host.gnu_triplet}} \
+ --prefix={{host.prefix}}
+ find -name config.log -delete
+
+ compile:
+ args:
+ host: 'platform'
+ parent:
+ task: 'configure'
+ run: |
+ cd {{name}}-build
+ make
+ find -name config.log -delete
+
+ install:
+ args:
+ host: 'platform'
+ parent:
+ task: 'compile'
+ output:
+ default:
+ runtime_depends:
+ - recipe: 'toolchain'
+ task: 'depends'
+ run: |
+ cd {{name}}-build
+ make DESTDIR={{destdir}} install
+