wine-staging/main.sh

31 lines
660 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 "$VERSION" https://gitlab.winehq.org/wine/wine-staging
./staging/patchinstall.py DESTDIR="../wine" --all
cd ../
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/