Matthew Faltys
5 years ago
commit
47bd99a75d
3 changed files with 54 additions and 0 deletions
@ -0,0 +1,41 @@ |
|||||||
|
FROM debian:stretch |
||||||
|
|
||||||
|
RUN apt-get update && \ |
||||||
|
DEBIAN_FRONTEND=noninteractive apt-get install -y \ |
||||||
|
git \ |
||||||
|
g++ \ |
||||||
|
libboost1.62-dev \ |
||||||
|
libboost-all-dev \ |
||||||
|
libncurses5-dev \ |
||||||
|
libncursesw5-dev \ |
||||||
|
libsdl2-dev \ |
||||||
|
libxerces-c-dev \ |
||||||
|
lua5.1 \ |
||||||
|
liblua5.1-0-dev \ |
||||||
|
libsdl2-image-2.0-0 \ |
||||||
|
libsdl2-image-dev \ |
||||||
|
make \ |
||||||
|
premake4 \ |
||||||
|
zlibc |
||||||
|
RUN apt-get clean |
||||||
|
|
||||||
|
# fetch the sotw repo |
||||||
|
RUN git clone https://github.com/prolog/shadow-of-the-wyrm |
||||||
|
# cd shadow-of-the-wyrm && \ |
||||||
|
# git checkout develop |
||||||
|
|
||||||
|
# build sotw |
||||||
|
RUN cd shadow-of-the-wyrm && \ |
||||||
|
premake4 --lua_include=/usr/include/lua5.1 --lua_link=lua5.1 gmake && \ |
||||||
|
make config=release |
||||||
|
|
||||||
|
# update ini to be curses by default |
||||||
|
RUN cd shadow-of-the-wyrm && \ |
||||||
|
sed -i 's/display=sdl/display=curses/g' swyrm.ini |
||||||
|
|
||||||
|
# remove git data from package |
||||||
|
RUN rm -rf shadow-of-the-wyrm/.git* |
||||||
|
|
||||||
|
RUN tar -czf shadow-of-the-wyrm.tar.gz shadow-of-the-wyrm/ |
||||||
|
|
||||||
|
CMD ["cp", "/shadow-of-the-wyrm.tar.gz", "/stage/"] |
@ -0,0 +1,12 @@ |
|||||||
|
STAGE_IMAGE_NAME=sotw
|
||||||
|
SOTW_VER=release-1.1.6
|
||||||
|
OS_PERMS=sudo
|
||||||
|
|
||||||
|
all: |
||||||
|
$(OS_PERMS) docker build -t $(STAGE_IMAGE_NAME) .
|
||||||
|
$(OS_PERMS) docker run --name=tmpsotw -v $(shell pwd):/stage:rw $(STAGE_IMAGE_NAME)
|
||||||
|
$(OS_PERMS) docker rm tmpsotw
|
||||||
|
mv shadow-of-the-wyrm.tar.gz shadow-of-the-wyrm-$(SOTW_VER).tar.gz
|
||||||
|
|
||||||
|
clean: |
||||||
|
rm -rf *.tar.gz
|
Loading…
Reference in new issue