<|start_filename|>testing/docker-lts/Dockerfile<|end_filename|>
FROM ubuntu:xenial

RUN apt update && apt dist-upgrade -y && apt install -y snapcraft && apt clean

# enable multiverse as snapcraft cleanbuild does.
RUN sed -i 's/ universe/ universe multiverse/' /etc/apt/sources.list


<|start_filename|>gitter-im/Makefile<|end_filename|>
# -*- Mode:Makefile; indent-tabs-mode:t; tab-width:4 -*-

TMPDIR= ./unpack
OPT = $(TMPDIR)/opt/Gitter/linux64
OUTDIR = ../src/
VERSION = $(shell sed -n -e "s/\"//g" -e "s/-.*$$//; s/^[^=]*version[^:]*:[[:blank:]]*//p" ../src/snapcraft.yaml )
URL = http://update.gitter.im/linux64

all: clean download

install:
	mkdir -p $(OUTDIR)setup/gui
	sed "s/^Icon=.*/Icon=$$\{SNAP\}\/meta\/gui\/icon.png/; s/^Exec=.*/Exec=gitter/g" $(OPT)/gitter.desktop >$(OUTDIR)setup/gui/gitter.desktop
	mv $(OPT)/Gitter $(OUTDIR)
	mv $(OPT)/icudtl.dat $(OUTDIR)
	mv $(OPT)/libffmpegsumo.so $(OUTDIR)
	mv $(OPT)/locales $(OUTDIR)
	mv $(OPT)/nw.pak $(OUTDIR)
	mv $(OPT)/logo.png $(OUTDIR)setup/gui/icon.png
	rm -rf *.deb
	rm -rf $(TMPDIR)

download:
	wget $(URL)/gitter_$(VERSION)_amd64.deb
	dpkg -x gitter_$(VERSION)_amd64.deb $(TMPDIR)

clean:
	rm -f Gitter
	rm -f icudtl.dat
	rm -f libffmpegsumo.so
	rm -rf locales
	rm -f nw.pak
	rm -rf setup


<|start_filename|>testing/docker-master/Dockerfile<|end_filename|>
FROM ubuntu:xenial

RUN apt-get update && apt-get dist-upgrade -y && apt-get install -y devscripts equivs git

# enable multiverse as snapcraft cleanbuild does.
RUN sed -i 's/ universe/ universe multiverse/' /etc/apt/sources.list

# build and install snapcraft from master.
RUN git clone https://github.com/snapcore/snapcraft && \
  cd snapcraft && \
  mk-build-deps debian/control -i --tool 'apt-get -y' && \
  dpkg-buildpackage -us -uc && \
  apt-get install -y ../*.deb && \
  apt-get clean -y && \
  apt-get remove --purge -y devscripts equivs git python3-fixtures python3-responses python3-setuptools python3-testscenarios python3-testtools && \
  apt-get autoremove -y
