2024-08-09 20:59:19 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
. ./pika-build-config.sh
|
|
|
|
|
|
|
|
echo "$PIKA_BUILD_ARCH" > pika-build-arch
|
|
|
|
|
2024-11-25 20:59:14 +01:00
|
|
|
VERSION="9.22"
|
2024-08-09 20:59:19 +02:00
|
|
|
|
|
|
|
# Clone Upstream
|
2024-08-09 22:00:40 +02:00
|
|
|
git clone --depth=1 -b wine-"$VERSION" https://gitlab.winehq.org/wine/wine
|
|
|
|
# Clone staging patches
|
2024-08-09 22:02:20 +02:00
|
|
|
git clone --depth=1 -b v"$VERSION" https://gitlab.winehq.org/wine/wine-staging
|
|
|
|
cd ./wine-staging
|
2024-08-09 22:00:40 +02:00
|
|
|
./staging/patchinstall.py DESTDIR="../wine" --all
|
|
|
|
cd ../
|
2024-08-09 22:02:43 +02:00
|
|
|
# Copy debian packaging files
|
2024-08-09 22:00:40 +02:00
|
|
|
cp -rvf ./debian ./wine/
|
|
|
|
cd ./wine/
|
2024-08-09 20:59:19 +02:00
|
|
|
|
|
|
|
# Get build deps
|
2024-08-09 21:03:03 +02:00
|
|
|
LOGNAME=root dh_make --createorig -y -l -p wine-staging_"$VERSION" || echo "dh-make: Ignoring Last Error"
|
2024-08-09 20:59:19 +02:00
|
|
|
apt-get build-dep ./ -y
|
|
|
|
|
|
|
|
# Build package
|
|
|
|
dpkg-buildpackage --no-sign
|
|
|
|
|
|
|
|
# Move the debs to output
|
|
|
|
cd ../
|
|
|
|
mkdir -p ./output
|
|
|
|
mv ./*.deb ./output/
|