Commit 5767ca92 authored by Ed Reel's avatar Ed Reel

Update wine from 5.0.2-stable to 5.22

Remove compatibility for i686

Add self.remove section

Change to Dir.chdir

Add pre-built binaries
parent ca892e8d
...@@ -4,47 +4,78 @@ require 'fileutils' ...@@ -4,47 +4,78 @@ require 'fileutils'
class Wine < Package 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.' 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/' homepage 'https://www.winehq.org/'
compatibility 'all' compatibility 'aarch64,armv7l,x86_64'
version '5.0.2-stable' version '5.22'
source_url 'https://dl.winehq.org/wine/source/5.0/wine-5.0.2.tar.xz' case ARCH
source_sha256 'c2c284f470874b35228327c3972bc29c3a9d8d98abd71dbf81c288b8642becbc' when 'aarch64', 'armv7l', 'x86_64'
source_url 'https://dl.winehq.org/wine/source/5.x/wine-5.22.tar.xz'
depends_on 'freetype' source_sha256 '09bd06c87c8c974e6ad34507cec875d7217eb56fc09df838d5453e0ebbce4d21'
depends_on 'glib' depends_on 'freetype'
depends_on 'libgphoto' depends_on 'glib'
depends_on 'libxext' depends_on 'libgphoto'
depends_on 'eudev' depends_on 'libxext'
depends_on 'gstreamer' depends_on 'eudev'
depends_on 'lcms' depends_on 'gstreamer'
depends_on 'openldap' depends_on 'lcms'
depends_on 'libpcap' depends_on 'openldap'
depends_on 'apulse' depends_on 'libpcap'
depends_on 'pulseaudio' depends_on 'apulse'
depends_on 'mpg123' depends_on 'mpg123'
depends_on 'ffmpeg' depends_on 'ffmpeg'
depends_on 'sommelier' 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 def self.build
case ARCH case ARCH
when "i686", "armv7l", "aarch64" when 'x86_64'
system "./configure #{CREW_OPTIONS}" system "./configure #{CREW_OPTIONS} --enable-win64 --disable-maintainer-mode --with-x"
when "x86_64"
system "./configure #{CREW_OPTIONS} --enable-win64 --without-freetype"
else else
abort 'Error getting your device configuration. :/'.lightred system "./configure #{CREW_OPTIONS} --disable-maintainer-mode --with-x"
end end
system 'make' system 'make'
end end
def self.install def self.install
case ARCH case ARCH
when "x86_64" when 'x86_64'
FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin" FileUtils.mkdir_p "#{CREW_DEST_PREFIX}/bin"
FileUtils.cd("#{CREW_DEST_PREFIX}/bin") do Dir.chdir "#{CREW_DEST_PREFIX}/bin" do
system "ln -s wine64 wine" FileUtils.ln_s 'wine64', 'wine'
end end
end end
system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install' system 'make', "DESTDIR=#{CREW_DEST_DIR}", 'install'
end 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 end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment