File prepare.sh of Package hangover
#!/bin/bash
set -xe
USER="AndreRH"
REPO="hangover"
BRANCH=$(curl -s "https://api.github.com/repos/AndreRH/hangover/tags" | jq -r '.[0].name')
git clone -b ${BRANCH} --recurse -j$(nproc) https://github.com/${USER}/${REPO}
cd ${REPO}
git submodule update --init --recursive
cd ..
rm -rf ${REPO}.tar.gz
tar czf ${REPO}.tar.gz ${REPO}
rm -rf ${REPO}