Commit 055b3c84 authored by Ed Reel's avatar Ed Reel

Add symlink from wine64 to wine

  - Simplify architecture logic
parent 0fa9f1be
...@@ -14,19 +14,25 @@ class Wine < Package ...@@ -14,19 +14,25 @@ class Wine < Package
depends_on 'freetype' depends_on 'freetype'
def self.build def self.build
device = JSON.parse(File.read('/usr/local/etc/crew/device.json'), symbolize_names: true) case ARCH
case device[:architecture]
when "i686" || "armv7l" when "i686" || "armv7l"
system "./configure --without-x" system "./configure --without-x"
when "x86_64" || "aarch64" when "x86_64" || "aarch64"
system "./configure --without-x --enable-win64" system "./configure --without-x --enable-win64"
else else
puts "Error getting your device configuration." abort "Error getting your device configuration."
end end
system "make" system "make"
end end
def self.install 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" system "make", "DESTDIR=#{CREW_DEST_DIR}", "install"
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