~osomon/+junk/0ad-snap

« back to all changes in this revision

Viewing changes to snapcraft.yaml

  • Committer: Olivier Tilloy
  • Date: 2018-10-09 07:21:01 UTC
  • Revision ID: olivier@tilloy.net-20181009072101-ortojvjlh0pavttz
Install patches in the stage directory, where the 0ad-unix-build part can find them without escaping its build directory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
      - x11
37
37
 
38
38
parts:
 
39
  0ad-patches:
 
40
    plugin: nil
 
41
    source: patches
 
42
    override-build: |
 
43
      mkdir -p $SNAPCRAFT_PART_INSTALL/patches
 
44
      cp *.patch $SNAPCRAFT_PART_INSTALL/patches/
 
45
    override-prime: ""
39
46
  0ad-unix-build:
40
 
    after: [ libsodium ]
 
47
    after: [ 0ad-patches, libsodium ]
41
48
    plugin: nil
42
49
    source: https://releases.wildfiregames.com/0ad-0.0.23-alpha-unix-build.tar.xz
43
50
    build-packages:
65
72
      - pkg-config
66
73
      - zlib1g-dev
67
74
    override-build: |
68
 
      patch -d . -p1 < ../../../patches/allow-build-with-root.patch
69
 
      patch -d . -p1 < ../../../patches/use-sdl-semaphores.patch
 
75
      patch -d . -p1 < $SNAPCRAFT_STAGE/patches/allow-build-with-root.patch
 
76
      patch -d . -p1 < $SNAPCRAFT_STAGE/patches/use-sdl-semaphores.patch
70
77
      build/workspaces/update-workspaces.sh --with-system-nvtt -j$SNAPCRAFT_PARALLEL_BUILD_COUNT
71
78
      make -j$SNAPCRAFT_PARALLEL_BUILD_COUNT config=release -C build/workspaces/gcc
72
79
      P=binaries/system