summaryrefslogtreecommitdiffstats
path: root/examples/recipes/make_ext4fs@2020-01-05.yml
blob: 53fed98fafe0a6a2a39fe16b243110f711521f43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
meta:
  version: '2020-01-05-5c201be7d72aff735da27e17c29852e0cefe3e52'
tasks:
  unpack:
    fetch:
      - name: '{{pn}}-{{pv}}.tar.gz'
        sha256: 'bfe984cc757c676639090a5b34bdfc359cdef9b723de77efbce590872dce4132'
    run: |
      tar xf {{dldir}}/{{pn}}-{{pv}}.tar.gz

  compile:
    args:
      host: 'platform'
    build_depends:
      - recipe: 'toolchain'
        task: 'build_depends'
    depends:
      - recipe: 'toolchain'
        task: 'depends'
      - recipe: 'zlib'
        task: 'install'
    inherit:
      task: 'unpack'
    run: |
      cd {{pn}}-{{pv}}
      make

  install:
    args:
      host: 'platform'
    inherit:
      task: 'compile'
    output:
      default:
        runtime_depends:
          - recipe: 'toolchain'
            task: 'depends'
          - recipe: 'zlib'
            task: 'install'
    run: |
      cd {{pn}}-{{pv}}
      install -d {{destdir}}{{host.prefix}}/bin
      install -m755 make_ext4fs {{destdir}}{{host.prefix}}/bin/