minetest-luk3yx-dev/snapcraft.yaml
2022-07-04 22:34:41 +12:00

109 lines
2.8 KiB
YAML

name: minetest-luk3yx-dev
version: "git"
summary: "luk3yx's unofficial Minetest builds."
description: |
Minetest is a Minecraft-inspired game written from scratch and licensed
under the LGPL (version 2.1 or later). It supports both survival and
creative modes along with multiplayer support, dynamic lighting, and an
"infinite" map generator.
grade: devel
confinement: strict
icon: snap/gui/minetest.svg
base: core18
architectures:
- build-on: amd64
- build-on: arm64
- build-on: armhf
- build-on: i386
- build-on: ppc64el
apps:
minetest:
command: launcher
plugs: [desktop, desktop-legacy, x11, network, network-bind, opengl,
audio-playback]
minetestserver:
command: launcher --server
plugs: [desktop, desktop-legacy, x11, network, network-bind, opengl,
audio-playback]
minetest-luk3yx-dev:
command: launcher
plugs: [desktop, desktop-legacy, x11, network, network-bind, opengl,
audio-playback]
parts:
launcher:
source: scripts
plugin: dump
minetestgame:
source: https://github.com/minetest/minetest_game.git
plugin: dump
source-branch: master
organize:
'*': 'share/minetest/games/minetest_game/'
irrlicht:
source: https://github.com/minetest/irrlicht.git
source-branch: master
plugin: cmake
override-pull: |
snapcraftctl pull
tag=$(git describe --tags $(git rev-list --tags --max-count=1))
git checkout "$tag"
curl https://github.com/appgurueu/irrlicht/commit/0f1bff1da4e38daeee944ff12d1a916373cdfbc2.patch > line-drawing.patch
echo 'f54cea7dd9f18ddcda6a7f5e80c3e0f8c4256f8eb2ee5779f80084ef5c1652f7 line-drawing.patch' | sha256sum -c && git apply line-drawing.patch
rm -v line-drawing.patch
minetest:
source: https://github.com/minetest/minetest.git
source-branch: master
plugin: cmake
configflags: [-DRUN_IN_PLACE=FALSE]
after:
- irrlicht
build-packages:
- cmake
- curl
- gcc
- g++
- gettext
- libcurl4-gnutls-dev
- libfreetype6-dev
- libglu1-mesa-dev
- libjpeg-dev
- libleveldb-dev
- libluajit-5.1-dev
- libogg-dev
- libopenal-dev
- libpng-dev
- libpulse-dev
- libsqlite3-dev
- libvorbis-dev
- libx11-dev
- libzstd-dev
- zlib1g-dev
stage-packages:
- libgl1-mesa-dri
- libpulse0
- libcurl3-gnutls
- libgl1-mesa-glx
- libxshmfence1
- libxcb-sync1
- libxcb-present0
- libxcb-glx0
- libxcb-dri3-0
- libxcb-dri2-0
- libvorbisfile3
- libsnappy1v5
- libfreetype6
- libopenal1
- libluajit-5.1-2
- libleveldb1v5
- libjpeg-turbo8
- libxxf86vm1
- libxfixes3
- libxext6
- libxdamage1
- libx11-6
- libx11-xcb1