Merge pull request #18 from cmatsuoka/add-irrlicht-part

Add irrlicht part and update dependencies
This commit is contained in:
Dani Llewellyn 2022-08-07 20:30:48 +01:00 committed by GitHub
commit f2967c68db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 5 deletions

View File

@ -26,8 +26,24 @@ apps:
parts:
launcher:
source: snap/scripts
source: scripts
plugin: dump
irrlicht:
source: https://github.com/minetest/irrlicht.git
plugin: cmake
configflags:
- -DBUILD_SHARED_LIBS=OFF
build-packages:
- libpng-dev
- libjpeg-dev
- libx11-dev
- libxi-dev
- libglu1-mesa-dev
- zlib1g-dev
prime:
- -*
minetestgame:
source: https://github.com/minetest/minetest_game.git
plugin: dump
@ -40,13 +56,15 @@ parts:
if [ "${last_committed_tag}" != "${last_released_tag}" ]; then
git fetch
git checkout "${last_committed_tag}"
fi
fi
override-build: |
snapcraftctl build
organize:
'*': 'share/minetest/games/minetest_game/'
minetest:
plugin: cmake
source: https://github.com/minetest/minetest.git
after: [ irrlicht ]
override-pull: |
snapcraftctl pull
last_committed_tag="$(git for-each-ref --sort=taggerdate --format '%(tag)' refs/tags | tail -n 1)"
@ -63,7 +81,6 @@ parts:
snapcraftctl set-version "$(git describe --tags)"
override-build: |
snapcraftctl build
plugin: cmake
configflags: ["-DRUN_IN_PLACE=FALSE", "-DCMAKE_BUILD_TYPE=Release"]
build-packages:
- cmake
@ -75,7 +92,6 @@ parts:
- libcurl4-gnutls-dev
- libfreetype6-dev
- libglu1-mesa-dev
- libirrlicht-dev
- libjpeg-dev
- libjsoncpp-dev
- libleveldb-dev
@ -87,6 +103,7 @@ parts:
- libsqlite3-dev
- libvorbis-dev
- libx11-dev
- libzstd-dev
- zlib1g-dev
stage-packages:
- libgl1-mesa-dri
@ -111,6 +128,8 @@ parts:
- libxdamage1
- libx11-6
- libx11-xcb1
- libzstd1
- libfreetype6
- libirrlicht1.8
- libpng16-16
- libjsoncpp1
- libxi6