2024-10-30 18:11:00 +01:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
|
2024-11-13 19:58:15 +01:00
|
|
|
VERSION="0.16"
|
2024-10-30 18:11:00 +01:00
|
|
|
|
|
|
|
# Who are we
|
|
|
|
PACKAGE_NAME="sbctl-booster-extra"
|
|
|
|
|
|
|
|
# Clone Upstream
|
|
|
|
UPSTREAM_NAME="booster"
|
|
|
|
|
|
|
|
# Checkout and munch
|
|
|
|
git clone https://github.com/ferrreo/booster.git "${UPSTREAM_NAME}"
|
|
|
|
cp -rvf ./debian ./${UPSTREAM_NAME}/
|
2024-11-13 19:03:41 +01:00
|
|
|
cp -vf ./Makefile ./booster/
|
2024-10-30 18:11:00 +01:00
|
|
|
|
|
|
|
# easier than figuring out the right way to override the prefix in the makefile
|
|
|
|
#sed -i "s/usr\/local/usr/" "${UPSTREAM_NAME}/Makefile"
|
|
|
|
#sed -i "s/\$(PREFIX)\/bin/\$(PREFIX)\/sbin/" "${UPSTREAM_NAME}/Makefile"
|
|
|
|
|
|
|
|
# Get in there.
|
|
|
|
pushd "./${UPSTREAM_NAME}/" || exit 1
|
|
|
|
|
|
|
|
# Get build deps
|
|
|
|
LOGNAME=root dh_make --createorig -y -l -p ${PACKAGE_NAME}_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
2024-11-13 19:03:41 +01:00
|
|
|
dpkg-buildpackage --no-sign -b
|
2024-10-30 18:11:00 +01:00
|
|
|
|
|
|
|
popd || exit 2
|
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|