Skip to content

Commit

Permalink
Updated snap build for 1.9.6.1 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
pjbroad committed Mar 12, 2022
1 parent 3504b11 commit b3fe7b7
Showing 1 changed file with 7 additions and 19 deletions.
26 changes: 7 additions & 19 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: eternallands
# Set to x.y.zpn / x.y.zpn-dev for stable / dev build
version: '1.9.6.0-dev'
version: '1.9.6.1'
summary: Eternal Lands is a free to play, graphical MMORPG
description: |
Eternal Lands is a free to play, graphical MMORPG (massively-multi-player
Expand Down Expand Up @@ -28,11 +28,11 @@ parts:
source: https://github.com/raduprv/Eternal-Lands
source-type: git
# Include for stable release, comment out for dev build, comment out for latest commit dev release
#source-tag: 1.9.6.0-1
source-tag: 1.9.6.1
build-packages: [build-essential, libcal3d12-dev, libsdl2-image-dev, libsdl2-net-dev, libsdl2-ttf-dev, libxml2-dev, libopenal-dev, libvorbis-dev, libpng-dev, libssl-dev]
plugin: cmake
# Add -DVERSION_PREFIX=x.y.z for dev build, remove for release
cmake-parameters: ["-DCMAKE_BUILD_TYPE=release", "-DEXEC=el.linux.bin", "-DLOCAL_NLOHMANN_JSON=On", "-DVERSION_PREFIX=1.9.6.0", "-DCMAKE_INSTALL_PREFIX=/" ]
cmake-parameters: ["-DCMAKE_BUILD_TYPE=release", "-DEXEC=el.linux.bin", "-DLOCAL_NLOHMANN_JSON=On", "-DCMAKE_INSTALL_PREFIX=/" ]
stage-packages:
- libglib2.0-0
- libsdl2-net-2.0-0
Expand Down Expand Up @@ -62,27 +62,22 @@ parts:
- desktop-glib-only

data:
source: https://github.com/raduprv/Eternal-Lands/releases/download/1.9.6.0/eternallands-data_1.9.6.0.zip
source-checksum: sha256/9669651e78c548a6b1fd16b515dd21cb7a8c5f8edbf955af4df6f5066f3d1b1b
source: https://github.com/raduprv/Eternal-Lands/releases/download/1.9.6.1/eternallands-data_1.9.6.1.zip
source-checksum: sha256/6dd8b997648f2d1c30a99614533aa495c7ebda3210b19f779497a71b3825822f
plugin: dump
organize:
el_data/ : data/
override-build: |
snapcraftctl build
sed -i 's|^#browser.*$|#browser = x-www-browser|g' $SNAPCRAFT_PART_INSTALL/el_data/el.ini
sed -i 's|^#use_new_selection.*$|#use_new_selection = 1|g' $SNAPCRAFT_PART_INSTALL/el_data/el.ini
rm -f $SNAPCRAFT_PART_INSTALL/el_data/maps/guildmap_lion.elm.gz
rm -f $SNAPCRAFT_PART_INSTALL/el_data/item_extra_info.txt
sound:
source: https://github.com/raduprv/Eternal-Lands/releases/download/1.9.5.9-1/eternallands-sound_1.9.5.9.zip
source-checksum: sha256/13a030bf5aca4e9e881707216f269df5826ff00345c93afac94a3f58455af542
source: https://github.com/raduprv/Eternal-Lands/releases/download/1.9.6.1/eternallands-sound_1.9.6.1.zip
source-checksum: sha256/e8dc68698b42256cb3c69935f892336e2c5de4002b9bef2c21af2124a5274e3f
plugin: dump
organize:
'*' : data/
override-build: |
snapcraftctl build
rm -f $SNAPCRAFT_PART_INSTALL/sound/snds_client.xml

music:
source: https://github.com/raduprv/Eternal-Lands/releases/download/1.9.5.9-1/eternallands-music_1.9.5.9.zip
Expand All @@ -91,13 +86,6 @@ parts:
organize:
'*' : data/music/

data-patch:
source: https://github.com/raduprv/Eternal-Lands/releases/download/1.9.6.0-p1-rc1/eternallands-data-patch-1.9.6.0-1.zip
source-checksum: sha256/6c9d157edf6fc67071d0e6e0f94d8bbd94b8132ab2c9831a5e5c22273410bce7
plugin: dump
organize:
'*' : data/

launcher:
plugin: nil
override-build: |
Expand Down

0 comments on commit b3fe7b7

Please sign in to comment.