Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
chromebrew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
chromebrew
Commits
fcc1e525
Commit
fcc1e525
authored
Dec 28, 2020
by
satmandu
Committed by
GitHub
Dec 28, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #4815 from uberhacker/update-wine-package
LGTM. Update wine from 5.0.2-stable to 5.22
parents
ca01fbea
5767ca92
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
58 additions
and
27 deletions
+58
-27
packages/wine.rb
packages/wine.rb
+58
-27
No files found.
packages/wine.rb
View file @
fcc1e525
...
...
@@ -4,47 +4,78 @@ require 'fileutils'
class
Wine
<
Package
description
'Wine (originally an acronym for "Wine Is Not an Emulator") is a compatibility layer capable of running Windows applications on several POSIX-compliant operating systems, such as Linux, macOS, & BSD.'
homepage
'https://www.winehq.org/'
compatibility
'all'
version
'5.0.2-stable'
source_url
'https://dl.winehq.org/wine/source/5.0/wine-5.0.2.tar.xz'
source_sha256
'c2c284f470874b35228327c3972bc29c3a9d8d98abd71dbf81c288b8642becbc'
depends_on
'freetype'
depends_on
'glib'
depends_on
'libgphoto'
depends_on
'libxext'
depends_on
'eudev'
depends_on
'gstreamer'
depends_on
'lcms'
depends_on
'openldap'
depends_on
'libpcap'
depends_on
'apulse'
depends_on
'pulseaudio'
depends_on
'mpg123'
depends_on
'ffmpeg'
depends_on
'sommelier'
compatibility
'aarch64,armv7l,x86_64'
version
'5.22'
case
ARCH
when
'aarch64'
,
'armv7l'
,
'x86_64'
source_url
'https://dl.winehq.org/wine/source/5.x/wine-5.22.tar.xz'
source_sha256
'09bd06c87c8c974e6ad34507cec875d7217eb56fc09df838d5453e0ebbce4d21'
depends_on
'freetype'
depends_on
'glib'
depends_on
'libgphoto'
depends_on
'libxext'
depends_on
'eudev'
depends_on
'gstreamer'
depends_on
'lcms'
depends_on
'openldap'
depends_on
'libpcap'
depends_on
'apulse'
depends_on
'mpg123'
depends_on
'ffmpeg'
depends_on
'sommelier'
end
binary_url
({
aarch64:
'https://dl.bintray.com/chromebrew/chromebrew/wine-5.22-chromeos-armv7l.tar.xz'
,
armv7l:
'https://dl.bintray.com/chromebrew/chromebrew/wine-5.22-chromeos-armv7l.tar.xz'
,
x86_64:
'https://dl.bintray.com/chromebrew/chromebrew/wine-5.22-chromeos-x86_64.tar.xz'
,
})
binary_sha256
({
aarch64:
'e9f8a89103ea4a6f17b75f044b0ccff30eb273d48bc211eee145b49b7a917ef7'
,
armv7l:
'e9f8a89103ea4a6f17b75f044b0ccff30eb273d48bc211eee145b49b7a917ef7'
,
x86_64:
'08df0a325ffc77756152d8bffd36c45e910c1ade4e6332b51f3dcb0fa042efee'
,
})
def
self
.
build
case
ARCH
when
"i686"
,
"armv7l"
,
"aarch64"
system
"./configure
#{
CREW_OPTIONS
}
"
when
"x86_64"
system
"./configure
#{
CREW_OPTIONS
}
--enable-win64 --without-freetype"
when
'x86_64'
system
"./configure
#{
CREW_OPTIONS
}
--enable-win64 --disable-maintainer-mode --with-x"
else
abort
'Error getting your device configuration. :/'
.
lightred
system
"./configure
#{
CREW_OPTIONS
}
--disable-maintainer-mode --with-x"
end
system
'make'
end
def
self
.
install
case
ARCH
when
"x86_64"
when
'x86_64'
FileUtils
.
mkdir_p
"
#{
CREW_DEST_PREFIX
}
/bin"
FileUtils
.
cd
(
"
#{
CREW_DEST_PREFIX
}
/bin"
)
do
system
"ln -s wine64 wine"
Dir
.
chdir
"
#{
CREW_DEST_PREFIX
}
/bin"
do
FileUtils
.
ln_s
'wine64'
,
'wine'
end
end
system
'make'
,
"DESTDIR=
#{
CREW_DEST_DIR
}
"
,
'install'
end
def
self
.
postinstall
puts
puts
"Type 'wine explorer' to get started using the file explorer."
.
lightblue
puts
end
def
self
.
remove
if
Dir
.
exists?
"
#{
HOME
}
/.wine"
puts
print
"Would you like to remove
#{
HOME
}
/.wine? [y/N] "
response
=
STDIN
.
getc
case
response
when
"y"
,
"Y"
FileUtils
.
rm_rf
"
#{
HOME
}
/.wine"
puts
"
#{
HOME
}
/.wine removed."
.
lightred
else
puts
"
#{
HOME
}
/.wine saved."
.
lightgreen
end
puts
end
end
end
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