slackbuilds_ponce/games/frozen-bubble/frozen-bubble-mksrctarball.sh
Heinz Wiesinger 1d5ed22cea
games/frozen-bubble: Updated for version git_20170702_d6a0291
Signed-off-by: Heinz Wiesinger <pprkut@slackbuilds.org>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
2021-09-22 11:33:22 +07:00

16 lines
466 B
Bash

#!/bin/bash
git clone https://github.com/kthakore/frozen-bubble.git
cd frozen-bubble
VERSION="git_$(git log --format="%ad_%h" --date=short | head -n 1 | tr -d -)"
LONGDATE="$(git log -1 --format=%cd --date=format:%c )"
cd ..
mv frozen-bubble frozen-bubble-$VERSION
tar --exclude-vcs -cf frozen-bubble-$VERSION.tar frozen-bubble-$VERSION
plzip -9 -v frozen-bubble-$VERSION.tar
touch -d "$LONGDATE" frozen-bubble-$VERSION.tar.lz
rm -rf frozen-bubble-$VERSION