From 21c1ca006d526f78ab88e2f1b3bda0f7cbc93f47 Mon Sep 17 00:00:00 2001 From: xpamych Date: Sat, 5 Nov 2022 18:57:17 +0300 Subject: [PATCH] add PP --- portproton/lure.sh | 14 ++++---------- portproton/preinstall.sh | 8 ++++++++ 2 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 portproton/preinstall.sh diff --git a/portproton/lure.sh b/portproton/lure.sh index 3b296e7..a39bbe7 100644 --- a/portproton/lure.sh +++ b/portproton/lure.sh @@ -15,22 +15,16 @@ build_deps_debian=('libvulkan1:i386') #sources=("git+https://github.com/Castro-Fidel/PortWINE.git") sources=("https://raw.githubusercontent.com/Castro-Fidel/PortWINE/master/portwine_install_script/PortProton_1.0" -"git+https://github.com/Castro-Fidel/PortProton_PKGBUILD.git") +"git+https://github.com/Castro-Fidel/PortProton_PKGBUILD.git" +) checksums=('SKIP' 'SKIP' +'SKIP' ) - +scripts=('preinstall') prepare() { -if [ ${distro}=debian] -then -sudo apt install software-properties-common -y -sudo apt-add-repository non-free -sudo dpkg --add-architecture i386 -sudo apt update -sudo apt upgrade -fi cd "${srcdir}" } diff --git a/portproton/preinstall.sh b/portproton/preinstall.sh new file mode 100644 index 0000000..85c52d5 --- /dev/null +++ b/portproton/preinstall.sh @@ -0,0 +1,8 @@ +if [ ${distro}=debian] +then +sudo apt install software-properties-common -y +sudo apt-add-repository non-free +sudo dpkg --add-architecture i386 +sudo apt update +sudo apt upgrade +fi \ No newline at end of file