Commit 70874ce6 authored by Damian Montero's avatar Damian Montero Committed by GitHub

Merge pull request #734 from uberhacker/update-wine-package

Update wine package from 2.8 to 2.10
parents 7f540d01 055b3c84
......@@ -3,28 +3,36 @@ require 'json'
require 'fileutils'
class Wine < Package
version '2.8'
source_url 'https://dl.winehq.org/wine/source/2.x/wine-2.8.tar.xz'
source_sha1 'a36d2afb572a3cfb160066373cb78ea0506b9dfd'
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/'
version '2.10'
source_url 'https://dl.winehq.org/wine/source/2.x/wine-2.10.tar.xz'
source_sha1 '886bc24c315b2accbc2ad41d921e92177768f3a5'
depends_on 'bison'
depends_on 'flex'
depends_on 'freetype'
def self.build
device = JSON.parse(File.read('/usr/local/etc/crew/device.json'), symbolize_names: true)
case device[:architecture]
case ARCH
when "i686" || "armv7l"
system "./configure --without-x"
when "x86_64" || "aarch64"
system "./configure --without-x --enable-win64"
system "./configure --without-x --enable-win64"
else
puts "Error getting your device configuration."
abort "Error getting your device configuration."
end
system "make"
end
def self.install
case ARCH
when "x86_64" || "aarch64"
system "mkdir -p #{CREW_DEST_DIR}/usr/local/bin"
FileUtils.cd("#{CREW_DEST_DIR}/usr/local/bin") do
system "ln -s wine64 wine"
end
end
system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
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