Skip to content

Commit

Permalink
wine: Add wine-staging patchset as a (non-default) build option
Browse files Browse the repository at this point in the history
  • Loading branch information
Anthony Eadicicco committed Jan 9, 2021
1 parent 3d62055 commit 785b66c
Showing 1 changed file with 17 additions and 6 deletions.
23 changes: 17 additions & 6 deletions srcpkgs/wine/template
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
# Template file for 'wine'
pkgname=wine
version=6.0rc6
revision=1
wrksrc=wine-${version/r/-r}
revision=2
create_wrksrc=yes
build_wrksrc=wine-${version/r/-r}
build_style=gnu-configure
configure_args="--bindir=/usr/libexec/wine"
short_desc="Run Microsoft Windows applications"
maintainer="Helmut Pozimski <helmut@pozimski.eu>"
license="LGPL-2.1-or-later"
homepage="http://www.winehq.org/"
distfiles="https://dl.winehq.org/wine/source/${version%r*}/wine-${version/r/-r}.tar.xz"
checksum=e67a97f198c96b3a624b637902be39be68c6dc5540d5594513078cf89780e6c1
distfiles="https://dl.winehq.org/wine/source/${version%r*}/wine-${version/r/-r}.tar.xz
$(vopt_if staging "https://github.com/wine-staging/wine-staging/archive/v${version/r/-r}.tar.gz")"
checksum="e67a97f198c96b3a624b637902be39be68c6dc5540d5594513078cf89780e6c1
$(vopt_if staging "9ee8a6d9eefae3bca4a6550d5336edac96537e5da0c3669003d21f08b55cbd13")"

build_options="mingw"
build_options="mingw staging"
build_options_default="mingw"
desc_option_mingw="Use the MinGW cross compiler to build WinPE DLLs"
desc_option_staging="Apply the wine-staging patchset"

lib32mode=full
archs="i686* x86_64*"
Expand All @@ -28,7 +32,8 @@ if [ "$XBPS_TARGET_MACHINE" = i686-musl ]; then
fi

hostmakedepends="pkg-config flex gettext
$(vopt_if mingw "cross-${XBPS_TARGET_MACHINE%-musl}-w64-mingw32")"
$(vopt_if mingw "cross-${XBPS_TARGET_MACHINE%-musl}-w64-mingw32")
$(vopt_if staging 'autoconf')"
makedepends="gettext-devel lcms2-devel zlib-devel ncurses-devel
glu-devel libSM-devel libXext-devel libX11-devel libXpm-devel
libXinerama-devel libXcomposite-devel libXmu-devel libXxf86vm-devel
Expand Down Expand Up @@ -64,6 +69,12 @@ if [ "${_nopie}" = yes ]; then
nopie_files+=" ${_wine_libexec}/wineserver${_wineserver_suffix}"
fi

post_patch() {
if [ "${build_option_staging}" ]; then
"../wine-staging-${version/r/-r}/patches/patchinstall.sh" --all
fi
}

pre_build() {
if [ "${_nopie}" = yes ]; then
make ${makejobs} LDFLAGS="$LDFLAGS -no-pie" \
Expand Down

0 comments on commit 785b66c

Please sign in to comment.