summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorzhanghua0002022-02-24 21:43:48 +0800
committerzhanghua0002022-02-24 21:43:48 +0800
commit6cbf81980519527fe55945c381a2341cda23aa1c (patch)
treed6984cf847eb20a9377219452e0807473bb8671e
downloadaur-6cbf81980519527fe55945c381a2341cda23aa1c.tar.gz
First release
-rw-r--r--.SRCINFO109
-rw-r--r--.gitignore4
-rw-r--r--30-win32-aliases.conf20
-rw-r--r--PKGBUILD96
-rw-r--r--wine-binfmt.conf2
5 files changed, 231 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 000000000000..e37386d85ab7
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,109 @@
+pkgbase = wine64-git
+ pkgdesc = A compatibility layer for running Windows programs which is only for 64 bit system.
+ pkgver = 7.2.584.g7ea710c69ba
+ pkgrel = 1
+ url = https://winehq.org
+ arch = x86_64
+ arch = aarch64
+ license = LGPL
+ makedepends = bison
+ makedepends = autoconf
+ makedepends = perl
+ makedepends = fontforge
+ makedepends = flex
+ makedepends = giflib
+ makedepends = git
+ makedepends = libxinerama
+ makedepends = libxcomposite
+ makedepends = libxmu
+ makedepends = libxxf86vm
+ makedepends = libldap
+ makedepends = mpg123
+ makedepends = openal
+ makedepends = v4l-utils
+ makedepends = mesa-libgl
+ makedepends = opencl-icd-loader
+ makedepends = gst-plugins-base-libs
+ makedepends = vulkan-icd-loader
+ makedepends = vkd3d
+ makedepends = sdl2
+ makedepends = libcups
+ makedepends = libgphoto2
+ makedepends = sane
+ makedepends = gsm
+ makedepends = vulkan-headers
+ makedepends = samba
+ makedepends = opencl-headers
+ makedepends = smbclient
+ depends = dbus
+ depends = fontconfig
+ depends = freetype2
+ depends = gnutls
+ depends = libjpeg-turbo
+ depends = libpng
+ depends = libtiff
+ depends = mesa
+ depends = libunwind
+ depends = libxml2
+ depends = libxslt
+ depends = libxcursor
+ depends = libxrandr
+ depends = libxdamage
+ depends = libxi
+ depends = gettext
+ depends = glu
+ depends = libsm
+ depends = gcc-libs
+ depends = desktop-file-utils
+ optdepends = mingw-w64-gcc: At least one is necessary for compiling Win64 binaries.
+ optdepends = clang: At least one is necessary for compiling Win64 binaries.
+ optdepends = llvm: Install if you use clang for compiling.
+ optdepends = lld: Install if you use clang for compiling
+ optdepends = alsa-lib: At least one is necessary for sound.
+ optdepends = libpulse: At least one is necessary for sound.
+ optdepends = sdl2: Generally necessary for joystick or other HID support. Only one library is necessary, but they may exhibit different behaviour.
+ optdepends = systemd: Generally necessary for joystick or other HID support. Only one library is necessary, but they may exhibit different behaviour.
+ optdepends = faudio: Needed for audio in some newer applications, especially games newer than 2008.
+ optdepends = gstreamer: Generally necessary for games or applications that play back audio or video files.
+ optdepends = gst-plugins-base-libs: Generally necessary for games or applications that play back audio or video files.
+ optdepends = mpg123: Generally necessary for games or applications that play back audio files.
+ optdepends = vkd3d: Needed for some games newer than 2016.
+ optdepends = vulkan-icd-loader: Necessary for some games; only supported by some video cards.
+ optdepends = vulkan-headers: Necessary for some games; only supported by some video cards.
+ optdepends = lcms2: Rarely needed for color management.
+ optdepends = libcups: Install only if you need printer support.
+ optdepends = libgphoto2: Install only if you are using scanner or still image software.
+ optdepends = sane: Install only if you are using scanner or still image software.
+ optdepends = gsm: GSM audio codec which is very rarely needed, and generally only in older software.
+ optdepends = krb5: Install only if you are connecting via Kerberos.
+ optdepends = libldap: Install only if you are using remote directories.
+ optdepends = smbclient: Rarely needed for networking.
+ optdepends = ocl-icd: Install if you are using parallel computing or GPGPU software.
+ optdepends = libpcap: Install if you are using applications that require packet capture. This replaces native wpcap.dll shipped by applications.
+ optdepends = libusb: Install only if you are using an application that accesses a USB device directly.
+ optdepends = v4l-utils: Install only if you are capturing video.
+ optdepends = libcapi: Install only if you are using ISDN software.
+ optdepends = giflib
+ optdepends = openal
+ optdepends = alsa-plugins
+ optdepends = libxcomposite
+ optdepends = libxinerama
+ optdepends = opencl-icd-loader
+ optdepends = cups
+ optdepends = samba
+ optdepends = dosbox
+ provides = wine-x64
+ provides = wine64
+ conflicts = wine
+ conflicts = wine-x64
+ conflicts = wine64
+ options = staticlibs
+ options = !lto
+ source = git://source.winehq.org/git/wine.git
+ source = 30-win32-aliases.conf
+ source = wine-binfmt.conf
+ sha256sums = SKIP
+ sha256sums = c5674d8142a87969cc69a1852a8702c0f50ea953ffc01d117318af0187785568
+ sha256sums = 3298abd3a66ab9758d173304a34e952acaf8e718c5be9165b1057de5ae0c7594
+
+pkgname = wine64-git
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000000..19a4adcbb562
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+pkg
+src
+wine
+*.pkg.tar.zst
diff --git a/30-win32-aliases.conf b/30-win32-aliases.conf
new file mode 100644
index 000000000000..6c6e0d7113d9
--- /dev/null
+++ b/30-win32-aliases.conf
@@ -0,0 +1,20 @@
+<?xml version="1.0"?>
+<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
+<fontconfig>
+ <alias binding="same">
+ <family>MS Shell Dlg</family>
+ <accept><family>Microsoft Sans Serif</family></accept>
+ <default><family>sans-serif</family></default>
+ </alias>
+ <alias binding="same">
+ <family>MS Shell Dlg 2</family>
+ <accept><family>Tahoma</family></accept>
+ <default><family>sans-serif</family></default>
+ </alias>
+
+ <alias binding="same">
+ <family>MS Sans Serif</family>
+ <prefer><family>Microsoft Sans Serif</family></prefer>
+ <default><family>sans-serif</family></default>
+ </alias>
+</fontconfig>
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 000000000000..6294c7b2f7f8
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,96 @@
+# Maintainer: zhanghua<zhanghua.00@qq.com>
+# Contributor: Roland <hr_01y@protonmail.com>
+# Contributor: Sven-Hendrik Haase <sh@lutzhaase.com>
+# Contributor: Jan "heftig" Steffens <jan.steffens@gmail.com>
+# Contributor: Eduardo Romero <eduardo@archlinux.org>
+# Contributor: Giovanni Scafora <giovanni@archlinux.org>
+
+pkgname=wine64-git
+pkgver=7.2.584.g7ea710c69ba
+pkgrel=1
+pkgdesc="A compatibility layer for running Windows programs which is only for 64 bit system."
+url=https://winehq.org
+arch=('x86_64' 'aarch64')
+options=('staticlibs' '!lto')
+license=('LGPL')
+source=(
+ "git://source.winehq.org/git/wine.git"
+ "30-win32-aliases.conf"
+ "wine-binfmt.conf"
+)
+sha256sums=('SKIP'
+ 'c5674d8142a87969cc69a1852a8702c0f50ea953ffc01d117318af0187785568'
+ '3298abd3a66ab9758d173304a34e952acaf8e718c5be9165b1057de5ae0c7594')
+
+conflicts=('wine' 'wine-x64' 'wine64')
+provides=('wine-x64' 'wine64')
+depends=(
+ 'dbus' 'fontconfig' 'freetype2' 'gnutls' 'libjpeg-turbo' 'libpng' 'libtiff' 'mesa' 'libunwind'
+ 'libxml2' 'libxslt' 'libxcursor' 'libxrandr' 'libxdamage' 'libxi' 'gettext' 'glu' 'libsm' 'gcc-libs'
+ 'desktop-file-utils'
+ )
+makedepends=(
+ 'bison' 'autoconf' 'perl' 'fontforge' 'flex' 'giflib' 'git' 'libxinerama' 'libxcomposite' 'libxmu'
+ 'libxxf86vm' 'libldap' 'mpg123' 'openal' 'v4l-utils' 'mesa-libgl' 'opencl-icd-loader'
+ 'gst-plugins-base-libs' 'vulkan-icd-loader' 'vkd3d' 'sdl2' 'libcups' 'libgphoto2' 'sane' 'gsm'
+ 'vulkan-headers' 'samba' 'opencl-headers' 'smbclient'
+ )
+optdepends=(
+ 'mingw-w64-gcc: At least one is necessary for compiling Win64 binaries.'
+ 'clang: At least one is necessary for compiling Win64 binaries.'
+ 'llvm: Install if you use clang for compiling.'
+ 'lld: Install if you use clang for compiling'
+ 'alsa-lib: At least one is necessary for sound.'
+ 'libpulse: At least one is necessary for sound.'
+ 'sdl2: Generally necessary for joystick or other HID support. Only one library is necessary, but they may exhibit different behaviour.'
+ 'systemd: Generally necessary for joystick or other HID support. Only one library is necessary, but they may exhibit different behaviour.'
+ # Really Optional Dependencies:
+ 'faudio: Needed for audio in some newer applications, especially games newer than 2008.'
+ 'gstreamer: Generally necessary for games or applications that play back audio or video files.'
+ 'gst-plugins-base-libs: Generally necessary for games or applications that play back audio or video files.'
+ 'mpg123: Generally necessary for games or applications that play back audio files.'
+ 'vkd3d: Needed for some games newer than 2016.'
+ 'vulkan-icd-loader: Necessary for some games; only supported by some video cards.'
+ 'vulkan-headers: Necessary for some games; only supported by some video cards.'
+ 'lcms2: Rarely needed for color management.'
+ 'libcups: Install only if you need printer support.'
+ 'libgphoto2: Install only if you are using scanner or still image software.'
+ 'sane: Install only if you are using scanner or still image software.'
+ 'gsm: GSM audio codec which is very rarely needed, and generally only in older software.'
+ 'krb5: Install only if you are connecting via Kerberos.'
+ 'libldap: Install only if you are using remote directories.'
+ 'smbclient: Rarely needed for networking.'
+ 'ocl-icd: Install if you are using parallel computing or GPGPU software.'
+ 'libpcap: Install if you are using applications that require packet capture. This replaces native wpcap.dll shipped by applications.'
+ 'libusb: Install only if you are using an application that accesses a USB device directly.'
+ 'v4l-utils: Install only if you are capturing video.'
+ 'libcapi: Install only if you are using ISDN software.'
+ # Extra Optional Dependencies in Official repo:
+ 'giflib' 'openal' 'alsa-plugins' 'libxcomposite' 'libxinerama' 'opencl-icd-loader' 'cups' 'samba' 'dosbox'
+ )
+
+pkgver(){
+ cd "${srcdir}/wine"
+ git describe --tags | sed 's/wine-//;s/-/./g'
+}
+prepare(){
+ mkdir -p "${srcdir}/wine/wine64-build"
+ cd "${srcdir}/wine/wine64-build"
+ ../configure --enable-win64 --prefix=/usr --with-x --without-oss
+}
+build(){
+ cd "${srcdir}/wine/wine64-build"
+ make -j$(nproc)
+}
+package(){
+ cd "${srcdir}/wine/wine64-build"
+ DESTDIR="${pkgdir}" make install
+ install -Dm644 "${srcdir}/30-win32-aliases.conf" "${pkgdir}/etc/fonts/conf.d/30-win32-aliases.conf"
+ install -Dm644 "${srcdir}/wine-binfmt.conf" "${pkgdir}/usr/lib/binfmt.d/wine.conf"
+}
+check(){
+ # Some tests may be failed so it is recommended to skip check()
+ cd "${srcdir}/wine/wine64-build"
+ mkdir -p "${srcdir}/wine-prefix"
+ WINEPREFIX="${srcdir}/wine-prefix" make check
+}
diff --git a/wine-binfmt.conf b/wine-binfmt.conf
new file mode 100644
index 000000000000..a7f2e51b0094
--- /dev/null
+++ b/wine-binfmt.conf
@@ -0,0 +1,2 @@
+# Start WINE64 on Windows executables
+:DOSWin:M::MZ::/usr/bin/wine64: