makedeb
A compatibility layer for running Windows programs (wayland version from gitlab.collabora.com/alf/wine/ wayland branch)
Viewing /PKGBUILD
.
Click here to go back to the Git tree for wine-wl-git.
# Maintainer: huakim <fijik19@gmail.com>
pkgname=wine-wl-git
pkgbase=wine-wl-git
pkgver=7.20
pkgrel=3
source=('https://gitlab.collabora.com/alf/wine/-/archive/wayland/wine-wayland.tar.bz2'
'30-win32-aliases.conf'
'wine-binfmt.conf')
sha512sums=('SKIP'
'6200d75042a5993294ee58583fa9d145e46a36bcc2a38ddae92482366aaf67423b160556f748cd85d3ee1c521c497488810bdc0b79e192742f83ae49e7f55938'
'0ae5202b0ec9b4b1437f8c19f6e5f9c8ed32ef5d112f87c2bebdad62dcc60cdc0016fb9fbf911773bfab0701bc7481e686a06d2a25c9127895b7bc2dde2f2035')
pkgdesc="A compatibility layer for running Windows programs (wayland version from gitlab.collabora.com/alf/wine/ wayland branch)"
url="http://www.winehq.com"
arch=(amd64)
options=(staticlibs)
license=(LGPL)
depends=(
libc6
libasound2
libcapi20-3
libcups2
libdbus-1-3
libfontconfig
libfreetype6
libgif7
libglvnd0
libgl1
libglu1-mesa
libgphoto2-6
libgsm1
libgstreamer-gl1.0-0
gir1.2-gst-plugins-base-1.0
libgstreamer-plugins-base1.0-0
libldap-2.5-0
libmpg123-0
libout123-0
libsyn123-0
libncurses6
libncursesw6
libtinfo6
libopenal1
libosmesa6
libpng16-16
libpulse0
libpulse-mainloop-glib0
libsane1
libstdc++6
libssl3
libtiff5
libtiffxx5
libx11-6
libxcomposite1
libxcursor1
libxext6
libxi6
libxinerama1
libxkbfile1
libxml2
libxmu6
libxrandr2
libxrender1
libusb-1.0-0
krb5-multidev
ocl-icd-libopencl1
libsdl2-2.0-0
libpcap0.8
libxkbcommon0
libvulkan1
libgnutlsxx30
libgnutls30
libwayland-client0
libwayland-server0
libwayland-cursor0
libwayland-egl1
libwayland-client++1
libwayland-server++1
libwayland-cursor++1
libwayland-egl++1
libxslt1.1
libxt6
libxxf86dga1
libxxf86vm1
libopenal1
unixodbc-common
wayland-protocols
libc6:i386
libasound2:i386
libcapi20-3:i386
libcups2:i386
libdbus-1-3:i386
libfontconfig:i386
libfreetype6:i386
libgif7:i386
libglvnd0:i386
libgl1:i386
libglu1-mesa:i386
libgphoto2-6:i386
libgsm1:i386
libgstreamer-gl1.0-0:i386
gir1.2-gst-plugins-base-1.0:i386
libgstreamer-plugins-base1.0-0:i386
libldap-2.5-0:i386
libmpg123-0:i386
libout123-0:i386
libsyn123-0:i386
libncurses6:i386
libncursesw6:i386
libtinfo6:i386
libopenal1:i386
libosmesa6:i386
libpng16-16:i386
libpulse0:i386
libpulse-mainloop-glib0:i386
libsane1:i386
libstdc++6:i386
libssl3:i386
libtiff5:i386
libtiffxx5:i386
libx11-6:i386
libxcomposite1:i386
libxcursor1:i386
libxext6:i386
libxi6:i386
libxinerama1:i386
libxkbfile1:i386
libxml2:i386
libxmu6:i386
libxrandr2:i386
libxrender1:i386
libusb-1.0-0:i386
krb5-multidev:i386
ocl-icd-libopencl1:i386
libsdl2-2.0-0:i386
libpcap0.8:i386
libxkbcommon0:i386
libvulkan1:i386
libgnutlsxx30:i386
libgnutls30:i386
libwayland-client0:i386
libwayland-server0:i386
libwayland-cursor0:i386
libwayland-egl1:i386
libwayland-client++1:i386
libwayland-server++1:i386
libwayland-cursor++1:i386
libwayland-egl++1:i386
libxslt1.1:i386
libxt6:i386
libxxf86dga1:i386
libxxf86vm1:i386
libopenal1:i386
fontforge prelink sharutils freeglut3 gettext
)
makedepends=( debhelper
gcc-mingw-w64-x86-64
g++-mingw-w64-x86-64
gcc-mingw-w64-i686
g++-mingw-w64-i686
wayland-protocols
build-essential
libc6-dev:i386
libc6-dev
autotools-dev
bison
prelink
sharutils
dctrl-tools
flex
fontforge
freeglut3-dev
gcc-multilib
gettext
lib32z1-dev
libasound2-dev
libcapi20-dev
libcups2-dev
libdbus-1-dev
libfontconfig1-dev
libfreetype6-dev
libgif-dev
libgl1-mesa-dev
libglu1-mesa-dev
libgphoto2-dev
libgsm1-dev
libjpeg-dev
libldap-dev
libmpg123-dev
libncurses5-dev
libopenal-dev
libosmesa6-dev
libpng-dev
libpulse-dev
libsane-dev
libstdc++-11-dev
libssl-dev
libtiff-dev
libx11-dev
libxcomposite-dev
libxcursor-dev
libxext-dev
libxi-dev
libxinerama-dev
libxkbfile-dev
libxml2-dev
libxmu-dev
libxrandr-dev
libxrender-dev
libusb-1.0-0-dev
libkrb5-dev
ocl-icd-opencl-dev
libgstreamer-plugins-base1.0-dev
libsdl2-dev
libpcap-dev
libwayland-dev
libxkbcommon-dev
libvulkan-dev
libgnutls28-dev
waylandpp-dev
libxslt1-dev
libxt-dev
libxxf86dga-dev
libxxf86vm-dev
libopenal-dev
unixodbc-dev
################################### 32
libasound2-dev:i386
libcapi20-dev:i386
libcups2-dev:i386
libdbus-1-dev:i386
libfontconfig1-dev:i386
libfreetype6-dev:i386
libgif-dev:i386
libgl1-mesa-dev:i386
libglu1-mesa-dev:i386
libgphoto2-dev:i386
libgsm1-dev:i386
libgstreamer-plugins-base1.0-dev:i386
libjpeg-dev:i386
libldap-dev:i386
libmpg123-dev:i386
libncurses5-dev:i386
libopenal-dev:i386
libosmesa6-dev:i386
libpng-dev:i386
libpulse-dev:i386
libsane-dev:i386
libstdc++-11-dev:i386
libssl-dev:i386
libtiff-dev:i386
libx11-dev:i386
libxcomposite-dev:i386
libxcursor-dev:i386
libxext-dev:i386
libxi-dev:i386
libxinerama-dev:i386
libxkbfile-dev:i386
libxml2-dev:i386
libxmu-dev:i386
libxrandr-dev:i386
libxrender-dev:i386
libusb-1.0-0-dev:i386
libkrb5-dev:i386
ocl-icd-opencl-dev:i386
libsdl2-dev:i386
libpcap-dev:i386
libwayland-dev:i386
libwayland-bin:i386
libxkbcommon-dev:i386
libvulkan-dev:i386
libgnutls28-dev:i386
waylandpp-dev:i386
libxslt1-dev:i386
libxt-dev:i386
libxxf86dga-dev:i386
libxxf86vm-dev:i386
libopenal-dev:i386
unixodbc-dev:i386
)
#optdepends=(
#'giflib' 'lib32-giflib'
#'libpng' 'lib32-libpng'
#'libldap' 'lib32-libldap'
#'gnutls' 'lib32-gnutls'
#'mpg123' 'lib32-mpg123'
#'openal' 'lib32-openal'
#'v4l-utils' 'lib32-v4l-utils'
#'libpulse' 'lib32-libpulse'
#'alsa-plugins' 'lib32-alsa-plugins'
#'alsa-lib' 'lib32-alsa-lib'
#'libjpeg-turbo' 'lib32-libjpeg-turbo'
#'libxcomposite' 'lib32-libxcomposite'
#'libxinerama' 'lib32-libxinerama'
#'ncurses' 'lib32-ncurses'
#'opencl-icd-loader' 'lib32-opencl-icd-loader'
#'libxslt' 'lib32-libxslt'
#'gst-plugins-base-libs' 'lib32-gst-plugins-base-libs'
#'vulkan-icd-loader' 'lib32-vulkan-icd-loader'
#'vkd3d' 'lib32-vkd3d'
#'sdl2' 'lib32-sdl2'
#'libgphoto2'
#'sane'
#'gsm'
#'cups'
#'samba'
#'dosbox'
#)
provides=("wine=${pkgver}" "wine64=${pkgver}" "wine32=${pkgver}")
conflicts=('wine' 'wine64' 'wine32')
build() {
mkdir -pv "$srcdir/wine-32-build"
mkdir -pv "$srcdir/wine-64-build"
cd "$srcdir/wine-64-build"
../wine-wayland/configure \
--prefix=/usr \
--libdir=/usr/lib \
--with-x \
--with-gstreamer \
--enable-win64 \
--with-wayland
make -j 1
cd "$srcdir/wine-32-build"
../wine-wayland/configure \
--prefix=/usr \
--with-x \
--with-gstreamer \
--with-wayland \
--libdir=/usr/lib32
make -j 1
}
package() {
cd "$srcdir/wine-32-build"
make prefix="$pkgdir/usr" \
libdir="$pkgdir/usr/lib32" \
dlldir="$pkgdir/usr/lib32/wine" install
cd "$srcdir/wine-64-build"
make prefix="$pkgdir/usr" \
libdir="$pkgdir/usr/lib" \
dlldir="$pkgdir/usr/lib/wine" install
# Font aliasing settings for Win32 applications
install -d "$pkgdir"/etc/fonts/conf.{avail,d}
install -m644 "$srcdir/30-win32-aliases.conf" "$pkgdir/etc/fonts/conf.avail"
ln -s ../conf.avail/30-win32-aliases.conf \
"$pkgdir/etc/fonts/conf.d/30-win32-aliases.conf"
install -Dm644 "$srcdir/wine-binfmt.conf" \
"$pkgdir/usr/share/wine/binfmt/wine.conf"
# strip native PE libraries
i686-w64-mingw32-strip --strip-unneeded "${pkgdir}/usr/lib32/wine/i386-windows"/*.dll
x86_64-w64-mingw32-strip --strip-unneeded "${pkgdir}/usr/lib/wine/x86_64-windows"/*.dll
}