Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:Thaodan:emulators
wine
sync_source.sh
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File sync_source.sh of Package wine
#!/bin/sh wine_tkg_git=https://github.com/Frogging-Family/wine-tkg-git.git wine_tkg_community_patches=https://github.com/Frogging-Family/community-patches.git wine_git=https://gitlab.winehq.org/wine/wine.git wine_staging_git=https://gitlab.winehq.org/wine/wine-staging.git vk_version=1.3.285 #vk_version=1.3.267 git_clone_or_update() { local git_url=$1 shift if [ "$1" ] ; then git_name="$1" shift else git_name="${git_url##*/}" fi if [ -e "$git_name" ] ; then if [ ! "${git_url}" = "$(git --git-dir="$git_name/.git" config --get remote.origin.url)" ] ; then rm -rf "$git_name" fi fi if [ -e "$git_name" ] ; then ( cd "$git_name" || return 1 git pull --recurse-submodules ) else git clone --recursive "$git_url" "$git_name" "$@" fi } if [ -e customization.cfg ] ; then . "$PWD"/customization.cfg fi git_clone_or_update "$wine_tkg_git" wine-tkg-git if [ -e wine-tkg-git/wine-tkg-git/wine-tkg-profiles/wine-tkg-"$_LOCAL_PRESET".cfg ] ; then . "$PWD/wine-tkg-git/wine-tkg-git/wine-tkg-profiles/wine-tkg-$_LOCAL_PRESET.cfg" fi git_clone_or_update "$wine_staging_git" wine-staging git_clone_or_update "${_custom_wine_source:-${wine_git}}" wine if [ ${_proton_branch} ] ; then ( cd wine|| exit 1 git checkout ${_proton_branch} ) fi if [ -n "$_community_patches" ] ; then # For community patches to work # _community_patches_repo_path # needs to be set # _community_patches_auto_update has to be false git_clone_or_update "$wine_tkg_community_patches" wine_tkg_community_patches rm -rf wine-tkg-git/community-patches mkdir -p wine-tkg-git/community-patches/wine-tkg-git cp --archive wine_tkg_community_patches/wine-tkg-git/* \ wine-tkg-git/community-patches/wine-tkg-git/. fi tar cf wine-staging.tar.xz wine-staging tar cf wine.tar.xz wine tar cf wine-tkg-git.tar.xz wine-tkg-git wget https://raw.githubusercontent.com/KhronosGroup/Vulkan-Docs/v$vk_version/xml/vk.xml -O vk.xml # cutting off 'foo-' prefix that presents in the git tag version=$(cd wine;git describe --long --abbrev=7 --tags | sed 's/.*wine-//;s/\([^-]*-g\)/r\1/;s/-/./g') sed -i -e "s/^Version:.*$/Version: $version/g" wine.spec
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor