Skip to content

Commit

Permalink
Update snapcraft.yaml
Browse files Browse the repository at this point in the history
Add the cmake part.
  • Loading branch information
ArthurSonzogni committed Aug 15, 2019
1 parent a1bc9dd commit 42b1f1e
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,23 @@ apps:
- pulseaudio
- x11
parts:

cmake:
source: https://github.com/Kitware/CMake
source-type: git
source-depth: 1
plugin: cmake
override-build: |
mkdir -p build
cd build
cmake \
-DCMAKE_INSTALL_PREFIX=$SNAPCRAFT_STAGE/cmake \
$SNAPCRAFT_PART_SRC
make -j 4
make install
inthecube:
after: [cmake]
plugin: cmake
source: https://github.com/ArthurSonzogni/InTheCube
source-type: git
Expand All @@ -38,19 +54,13 @@ parts:
- libpulse-dev
- xorg-dev
override-build: |
git clone https://github.com/Kitware/CMake --depth 1 || true
mkdir -p CMake/build
cd CMake/build
cmake .. -DCMAKE_INSTALL_PREFIX=../../cmake_install
make -j 4
make install
cd ../..
./cmake_install/bin/cmake \
$SNAPCRAFT_STAGE/cmake/bin/cmake \
-DCMAKE_INSTALL_PREFIX=$SNAPCRAFT_PART_INSTALL/usr/local \
-DCMAKE_BUILD_TYPE=Release \
$SNAPCRAFT_PART_SRC
make -j 4
make install
desktop-glib-only:
plugin: make
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git
Expand All @@ -59,6 +69,7 @@ parts:
- libglib2.0-dev
stage-packages:
- libglib2.0-bin

passthrough:
title: InTheCube
license: MIT

0 comments on commit 42b1f1e

Please sign in to comment.