summaryrefslogtreecommitdiff
path: root/buildstream/plugins/elements/dpkg_build.yaml
blob: 2a164eac1fc445dd66330592abf1b6725d1d0ca3 (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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Dpkg default configurations

variables:

  rulesfile: "debian/rules"
  build: "%{rulesfile} build"
  binary: "env DH_OPTIONS='--destdir=.' %{rulesfile} binary"

  # packages' default value will be automatically replaced with
  # defaults calculated from debian/control. Replace this with a
  # space-separated list of packages to have more control over
  # what gets generated.
  #
  # e.g.
  # packages: "foo foo-dev foo-doc"
  #
  packages: <PACKAGES>
  install-packages: |
    for pkg in %{packages}; do
      cp -a debian/${pkg}/* %{install-root}
    done
  clear-debian: |
    rm -r %{install-root}/DEBIAN
  patch: |
    if grep -q "3.0 (quilt)" debian/source/format; then
      quilt push -a
    fi

  # Set this if the sources cannot handle parallelization.
  #
  # notparallel: True

config:

  # Commands for configuring the software
  #
  configure-commands:
  - |
    %{patch}

  # Commands for building the software
  #
  build-commands:
  - |
    %{build}
  - |
    %{binary}

  # Commands for installing the software into a
  # destination folder
  #
  install-commands:
  - |
    %{install-packages}
  - |
    %{clear-debian}

  # Commands for stripping debugging information out of
  # installed binaries
  #
  strip-commands:
  - |
    %{strip-binaries}

# Use max-jobs CPUs for building and enable verbosity
environment:
  MAKEFLAGS: -j%{max-jobs}
  V: 1
  DH_VERBOSE: 1
  QUILT_PATCHES: debian/patches

# And dont consider MAKEFLAGS or V as something which may
# effect build output.
environment-nocache:
- MAKEFLAGS
- V
- DH_VERBOSE