wine-staging/main.sh

33 lines
709 B
Bash
Executable File

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