Commit 84f4deaf authored by Peter J. Mello's avatar Peter J. Mello
Browse files

Remove mk-build-deps for now

parent 6094bd3a
Pipeline #45955 failed with stages
in 3 minutes and 17 seconds
......@@ -94,9 +94,9 @@ fi
# Unpack the tarball in the build directory and change the naming conventions to Debian standard then repack
echo "Unpacking the release archive..."
tar xzf "${PACKAGE_DIR}"/"${PACKAGE_NAME}"-"${LATEST_TAG}".tar.gz -C "${PACKAGE_DIR}"
mv "${PACKAGE_DIR}"/"${PACKAGE_NAME}"-"${LATEST_TAG}" "${PACKAGE_DIR}"/"${PACKAGE_NAME}"-"${UPSTREAM_VER}"
tar cJf "${PACKAGE_NAME}"_"${UPSTREAM_VER}".orig.tar.xz "${PACKAGE_DIR}"/"${PACKAGE_NAME}"-"${UPSTREAM_VER}"
tar xzf "${PACKAGE_DIR}"/"${PACKAGE_NAME}"-"${LATEST_TAG}".tar.gz -C "${PACKAGE_DIR}" && cd ${PACKAGE_DIR}
mv ./"${PACKAGE_NAME}"-"${LATEST_TAG}" ./"${PACKAGE_NAME}"-"${UPSTREAM_VER}"
tar caf ${PACKAGE_NAME}"_"${UPSTREAM_VER}".orig.tar.xz "${PACKAGE_NAME}"-"${UPSTREAM_VER}"
rm -f "${PACKAGE_DIR}"/"${PACKAGE_NAME}"-"${LATEST_TAG}".tar.gz
# Copy the Debian packaging files into the same directory as the source code and
......@@ -104,9 +104,6 @@ rm -f "${PACKAGE_DIR}"/"${PACKAGE_NAME}"-"${LATEST_TAG}".tar.gz
cp -R "${SCRIPT_DIR}"/debian "${PACKAGE_DIR}"/"${PACKAGE_NAME}"-"${UPSTREAM_VER}"
cd "${PACKAGE_DIR}"/"${PACKAGE_NAME}"-"${UPSTREAM_VER}" || exit 1
# Create and install a dummy package to satisfy the build dependencies, then delete it
mk-build-deps -ir "${SCRIPT_DIR}"/debian/control
# Replace the generic distribution string "unstable" with the distribution codename of the build system
sed -i "1s/unstable/$(lsb_release -cs)/" "${PACKAGE_DIR}"/"${PACKAGE_NAME}"-"${UPSTREAM_VER}"/debian/changelog
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment