package-stuff/Makefile

28 lines
760 B
Makefile

VERSION=7.3.0
all:
echo "download the current mattermost tarball"
echo then build the package using the files in .debian/
clean:
rm -rf .debian/files/opt/
rm -rf files/opt files/DEBIAN
download:
wget -c https://releases.mattermost.com/${VERSION}/mattermost-${VERSION}-linux-amd64.tar.gz
extract:
mkdir -p .debian/files/opt/
cd .debian/files/opt/ && tar xfz ../../../mattermost-${VERSION}-linux-amd64.tar.gz
# update the bash-completion script
bash-completion:
mattermost completion bash > .debian/files/etc/bash_completion.d/mattermost
build:
mkdir -p files/DEBIAN
cp control files/DEBIAN/
echo Version: ${VERSION} >>files/DEBIAN/control
dpkg-deb --build files mattermost_${VERSION}_amd64.deb
dpkg-deb --info mattermost_${VERSION}_amd64.deb