|
|
@ -51,6 +51,10 @@ git_commithash_wine=${params[3]} |
|
|
|
git_branch_dxvk=${params[4]} |
|
|
|
git_branch_wine=${params[7]} |
|
|
|
|
|
|
|
git_source_dxvk=${params[8]} |
|
|
|
git_source_wine=${params[11]} |
|
|
|
git_source_winestaging=${params[12]} |
|
|
|
|
|
|
|
######################################################## |
|
|
|
|
|
|
|
# Parse input arguments, filter user parameters |
|
|
@ -100,7 +104,7 @@ function INFO_SEP() { printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - ; |
|
|
|
# If the script is interrupted (Ctrl+C/SIGINT), do the following |
|
|
|
|
|
|
|
function Arch_intCleanup() { |
|
|
|
rm -rf ${ARCH_BUILDROOT}/{0-wine-staging-git/{wine-patches,*.tar.xz},0-dxvk-git/{dxvk-git,*.tar.xz}} |
|
|
|
rm -rf ${ARCH_BUILDROOT}/{0-wine-staging-git/{wine-patches,*.tar.xz,*.sig},0-dxvk-git/{dxvk-git,*.tar.xz,*.sig}} |
|
|
|
exit 0 |
|
|
|
} |
|
|
|
|
|
|
@ -369,7 +373,7 @@ function check_gitOverride_wine() { |
|
|
|
# Remove any existing pkg,src or tar.xz packages left by previous pacman commands |
|
|
|
|
|
|
|
function cleanUp() { |
|
|
|
rm -rf ${ARCH_BUILDROOT}/*/{pkg,src,*.tar.xz,*.patch,*.diff} |
|
|
|
rm -rf ${ARCH_BUILDROOT}/*/{pkg,src,*.tar.xz,*.patch,*.diff,*.sig} |
|
|
|
} |
|
|
|
|
|
|
|
########################################################### |
|
|
@ -397,14 +401,23 @@ function build_pkg() { |
|
|
|
if [[ ${pkgname} == wine ]]; then |
|
|
|
check_gitOverride_wine |
|
|
|
|
|
|
|
git_source_wine=$(echo ${git_source_wine} | sed 's/\//\\\//g; s/\./\\\./g') |
|
|
|
sed -i "s/\(^_wine_gitsrc=\).*/\1\"${git_source_wine}\"/" ${pkgbuild_file} |
|
|
|
|
|
|
|
sed -i "s/\(^_wine_commit=\).*/\1${git_commithash_wine}/" ${pkgbuild_file} |
|
|
|
sed -i "s/\(^_git_branch_wine=\).*/\1${git_branch_wine}/" ${pkgbuild_file} |
|
|
|
|
|
|
|
if [[ ! -v NO_STAGING ]]; then |
|
|
|
git_source_winestaging=$(echo ${git_source_winestaging} | sed 's/\//\\\//g; s/\./\\\./g') |
|
|
|
sed -i "s/\(^_staging_gitsrc=\).*/\1\"${git_source_winestaging}\"/" ${pkgbuild_file} |
|
|
|
|
|
|
|
sed -i "s/\(^_staging_commit=\).*/\1${git_commithash_winestaging}/" ${pkgbuild_file} |
|
|
|
fi |
|
|
|
|
|
|
|
elif [[ ${pkgname} == dxvk ]]; then |
|
|
|
git_source_dxvk=$(echo ${git_source_dxvk} | sed 's/\//\\\//g; s/\./\\\./g') |
|
|
|
sed -i "s/\(^_dxvk_gitsrc=\).*/\1\"${git_source_dxvk}\"/" ${pkgbuild_file} |
|
|
|
|
|
|
|
sed -i "s/\(^_git_branch_dxvk=\).*/\1${git_branch_dxvk}/" ${pkgbuild_file} |
|
|
|
sed -i "s/\(^_dxvk_commit=\).*/\1${git_commithash_dxvk}/" ${pkgbuild_file} |
|
|
|
fi |
|
|
@ -482,7 +495,7 @@ function updatePOL() { |
|
|
|
# Clean these temporary folders & files |
|
|
|
|
|
|
|
# TODO Shall we remove git folders or keep them? |
|
|
|
dxvk_wine_cleanlist=('*.patch' '*.diff' 'pkg' 'src' '*-patches' '*.tar.xz') |
|
|
|
dxvk_wine_cleanlist=('*.patch' '*.diff' 'pkg' 'src' '*-patches' '*.tar.xz' '*.sig') |
|
|
|
|
|
|
|
########################################################## |
|
|
|
|
|
|
|