--- freem-mk-debian-package/mk-debian-package 2025/03/14 00:58:44 1.4 +++ freem-mk-debian-package/mk-debian-package 2025/04/03 03:52:38 1.5 @@ -1,7 +1,7 @@ #!/usr/bin/env bash # -# $Id: mk-debian-package,v 1.4 2025/03/14 00:58:44 snw Exp $ +# $Id: mk-debian-package,v 1.5 2025/04/03 03:52:38 snw Exp $ # Creates a Debian package for a specific FreeM version # # @@ -26,6 +26,9 @@ # along with FreeM. If not, see . # # $Log: mk-debian-package,v $ +# Revision 1.5 2025/04/03 03:52:38 snw +# Prepare Debian packaging infra for 0.63 series +# # Revision 1.4 2025/03/14 00:58:44 snw # Remove dbgsym package from upload # @@ -56,14 +59,15 @@ then fi FREEM_VERSION=$1 +FREEM_VERSION_MOD=$(echo "${FREEM_VERSION}" | sed 's/-/./g') FDPKG_VERSION=$2 FDSSH=$3 SRCDIR=$(pwd) TMPDIR=$(mktemp -d) INFILE="freem-${FREEM_VERSION}.tar.gz" -OUTFILE="${TMPDIR}/freem_${FREEM_VERSION}.orig.tar.gz" -TARDIR="${TMPDIR}/freem-${FREEM_VERSION}" +OUTFILE="${TMPDIR}/freem_${FREEM_VERSION_MOD}.orig.tar.gz" +TARDIR="${TMPDIR}/freem-${FREEM_VERSION_MOD}" URL="https://freem.coherent-logic.com/downloads/freem-${FREEM_VERSION}.tar.gz" echo -n "${PGM}: downloading ${URL} to ${OUTFILE}..." @@ -78,6 +82,7 @@ fi echo -n "${PGM}: extracting ${OUTFILE} to ${TARDIR}..." tar zxf "${OUTFILE}" -C "${TMPDIR}" +mv "${TMPDIR}/freem-${FREEM_VERSION}" "${TMPDIR}/freem-${FREEM_VERSION_MOD}" if [[ $? == 0 ]] then echo "[OK]" @@ -96,7 +101,8 @@ else exit 1 fi -sed -i "s/FREEM_VERSION/${FREEM_VERSION}-${FDPKG_VERSION}/g" "${TARDIR}/debian/changelog" +sed -i "s/FREEM_VERSION/${FREEM_VERSION_MOD}-${FDPKG_VERSION}/g" "${TARDIR}/debian/changelog" +sed -i "s/FREEM_VERSION/${FREEM_VERSION}-${FDPKG_VERSION}/g" "${TARDIR}/debian/control" echo "${PGM}: building the package..." cd "${TARDIR}"