diff --git a/main.sh b/main.sh index cbe190b..698f489 100755 --- a/main.sh +++ b/main.sh @@ -9,9 +9,13 @@ echo "$PIKA_BUILD_ARCH" > pika-build-arch VERSION="9.14" # Clone Upstream -mkdir -p ./wine-staging -cp -rvf ./debian ./wine-staging/ -cd ./wine-staging/ +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"