2024-10-31 17:34:38 +01:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
|
2024-11-04 04:11:05 +01:00
|
|
|
VERSION="0.4.7"
|
2024-10-31 17:34:38 +01:00
|
|
|
|
|
|
|
# Clone Upstream
|
|
|
|
UPSTREAM_NAME="pwvucontrol"
|
|
|
|
|
|
|
|
# Checkout and munch
|
|
|
|
git clone https://github.com/saivert/pwvucontrol.git "${UPSTREAM_NAME}"
|
|
|
|
cp -rvf ./debian ./${UPSTREAM_NAME}/
|
|
|
|
|
|
|
|
# Get in there.
|
|
|
|
pushd "./${UPSTREAM_NAME}/" || exit 1
|
|
|
|
|
2024-11-04 04:11:05 +01:00
|
|
|
# Checking out the tag in the clone should work.
|
|
|
|
# If it doesn't, this script is broken.
|
|
|
|
git checkout "${VERSION}"
|
|
|
|
|
2024-10-31 17:34:38 +01:00
|
|
|
# Get build deps
|
|
|
|
LOGNAME=root dh_make --createorig -y -l -p ${UPSTREAM_NAME}_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
|
|
|
apt -y update
|
|
|
|
apt -y build-dep ./
|
|
|
|
|
|
|
|
# Build package
|
|
|
|
dpkg-buildpackage --no-sign
|
|
|
|
|
|
|
|
popd || exit 2
|
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|