-
-
Save sahaRatul/935a7fc2f54104e69d8d0d39640513e9 to your computer and use it in GitHub Desktop.
Cataclysm: DDA clang+ccache Ubuntu 16.04 snapcraft build recipe
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
builtin cd ~ | |
#GET LATEST ICON AND YAML | |
rm cataicon.svg* | |
rm snapcraft.yaml* | |
wget https://gist.githubusercontent.com/sahaRatul/935a7fc2f54104e69d8d0d39640513e9/raw/70dc06f30b262aa2bd3a79127076cc6e304f10f4/cataicon.svg | |
wget https://gist.githubusercontent.com/sahaRatul/935a7fc2f54104e69d8d0d39640513e9/raw/3acdf2c8bec96bea72504335515888b8fbc2eaa5/snapcraft.yaml | |
#REMOVE EXISTING FOLDER | |
rm -rf Cataclysm-DDA | |
#CLONE SOURCE | |
git clone https://github.com/CleverRaven/Cataclysm-DDA.git --depth=1 | |
#COPY FILES TO SOURCE FOLDER | |
cp snapcraft.yaml Cataclysm-DDA | |
cp cataicon.svg Cataclysm-DDA/data | |
#START BUILD | |
builtin cd Cataclysm-DDA | |
snapcraft | |
#PUBLISH | |
snapcraft push *.snap --release beta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cataclysm | |
version: git | |
summary: Cataclysm - Dark Days Ahead | |
icon: data/cataicon.svg | |
architectures: | |
- build-on: [amd64] | |
run-on: [amd64] | |
description: | | |
Cataclysm: Dark Days Ahead is a roguelike set in a post-apocalyptic world. Surviving is difficult, you have been thrown, ill-equipped, into a landscape now riddled with monstrosities of which flesh eating zombies are neither the strangest nor the deadliest. | |
grade: devel | |
confinement: strict | |
apps: | |
cataclysm: | |
command: cataclysm-launcher | |
parts: | |
cataclysm: | |
plugin: make | |
build-packages: [astyle, ccache, build-essential, libncurses5-dev, libncursesw5-dev] | |
override-build: make NATIVE=linux64 RELEASE=1 CCACHE=1 USE_HOME_DIR=1 && mv * $SNAPCRAFT_PART_INSTALL | |
stage: [data, cataclysm, cataclysm-launcher] | |
prime: [data, cataclysm, cataclysm-launcher] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment