summaryrefslogtreecommitdiff
path: root/buildstream/plugins/elements/dpkg_build.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'buildstream/plugins/elements/dpkg_build.yaml')
-rw-r--r--buildstream/plugins/elements/dpkg_build.yaml73
1 files changed, 73 insertions, 0 deletions
diff --git a/buildstream/plugins/elements/dpkg_build.yaml b/buildstream/plugins/elements/dpkg_build.yaml
new file mode 100644
index 000000000..5d7431811
--- /dev/null
+++ b/buildstream/plugins/elements/dpkg_build.yaml
@@ -0,0 +1,73 @@
+# 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
+ 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}
+
+ # 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