2020-09-27 00:48:46 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
2020-12-04 21:27:28 +00:00
|
|
|
# Prepare
|
2021-11-11 03:17:04 +00:00
|
|
|
rm -f debian/changelog
|
|
|
|
PACKAGE='minecraft-pi-reborn'
|
2021-06-17 21:32:24 +00:00
|
|
|
VERSION="$(cat VERSION)"
|
2021-11-11 03:17:04 +00:00
|
|
|
DISTRO="$(lsb_release -cs)"
|
|
|
|
EDITOR='true' NAME='TheBrokenRail' EMAIL='connor24nolan@live.com' dch -u low -v "${VERSION}" --create --distribution "${DISTRO}" --package "${PACKAGE}" "Release ${VERSION}"
|
2021-06-17 21:32:24 +00:00
|
|
|
|
2021-11-11 03:17:04 +00:00
|
|
|
# Custom Architecture
|
|
|
|
ARCH="$(dpkg-architecture -qDEB_BUILD_ARCH)"
|
|
|
|
if [ -z "$1" ]; then
|
|
|
|
ARCH="$1"
|
|
|
|
fi
|
2020-10-03 20:18:53 +00:00
|
|
|
|
2021-11-11 03:17:04 +00:00
|
|
|
# Build
|
|
|
|
export DEB_CUSTOM_OUTPUT_DIR='out'
|
|
|
|
debuild --no-lintian -a"${ARCH}" -us -uc --buildinfo-option=-u"${DEB_CUSTOM_OUTPUT_DIR}" --changes-option=-u"${DEB_CUSTOM_OUTPUT_DIR}" -b
|