Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
eepm
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nurlan
eepm
Commits
96186529
Commit
96186529
authored
Apr 02, 2022
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
epm prescription wine: fix for 32-bit system
parent
a8dc5a5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
7 deletions
+14
-7
wine.sh
prescription.d/wine.sh
+14
-7
No files found.
prescription.d/wine.sh
View file @
96186529
#!/bin/sh
MAIN
=
wine
[
-n
"
$2
"
]
&&
MAIN
=
"
$2
"
vendor
=
"
$(
$DISTRVENDOR
-s
)
"
;
[
"
$vendor
"
=
"alt"
]
||
{
echo
"Only ALT distros is supported for now"
;
exit
1
;
}
arch
=
"
$(
$DISTRVENDOR
-a
)
"
PKGCOMMON
=
"wine-mono wine-gecko winetricks"
...
...
@@ -15,24 +13,33 @@ if [ "$1" = "--remove" ] ; then
exit
fi
[
"
$1
"
!=
"--run"
]
&&
echo
"Install
$MAIN
packages (add vanilla or etersoft if you need these packages)"
&&
exit
[
"
$1
"
!=
"--run"
]
&&
echo
"Install
$MAIN
packages (add wine-vanilla if you need these packages)"
&&
exit
ONLY32
=
''
[
"
$2
"
==
"--only-i586"
]
&&
ONLY32
=
1
&&
shift
[
-n
"
$2
"
]
&&
MAIN
=
"
$2
"
# do some magic: if winetricks more than 20210206, we have new wine package naming
epm
install
winetricks
||
exit
1
WTVER
=
"
$(
epm print version
for
package winetricks
)
"
if
[
"
$(
epm print compare package version
"
$WTVER
"
"20210206"
)
"
=
"1"
]
;
then
PKGNAMES
=
"
$MAIN
-full
$MAIN
-twain
$PKGCOMMON
"
PKGNAMES
=
"
$MAIN
-full
$MAIN
-twain"
PKGNAMES32
=
"i586-
$MAIN
i586-
$MAIN
-gl i586-
$MAIN
-twain"
else
# old naming scheme
PKGNAMES
=
"
$MAIN
lib
$MAIN
lib
$MAIN
-gl lib
$MAIN
-twain
$PKGCOMMON
"
PKGNAMES32
=
''
PKGNAMES
=
"
$MAIN
lib
$MAIN
lib
$MAIN
-gl lib
$MAIN
-twain"
PKGNAMES32
=
"i586-
$MAIN
i586-lib
$MAIN
i586-lib
$MAIN
-gl i586-lib
$MAIN
-twain"
echo
"We recommend ask about more new wine from your vendor."
fi
case
$arch
in
x86_64
)
PKGNAMES
=
"
$PKGNAMES
$PKGNAMES32
"
PKGNAMES
=
"
$PKGNAMES
$PKGNAMES32
$PKGCOMMON
"
[
-n
"
$ONLY32
"
]
&&
PKGNAMES
=
"
$PKGNAMES32
$PKGCOMMON
"
;;
x86
)
PKGNAMES
=
"
$PKGNAMES
$PKGCOMMON
"
;;
*
)
echo
"Arch
$arch
is not yet supported"
&&
exit
1
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment