blob: ee5f01e7f5d9c34327ef6b940e2dfe33e13b7475 (
plain) (
tree)
|
|
# Contributor: Valery Kartel <valery.kartel@gmail.com>
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Contributor: Łukasz Jendrysik <scadu@yandex.com>
# Contributor: Martell Malone <martell@marinelayer.io>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=wine
pkgver=8.1
pkgrel=0
pkgdesc="Compatibility layer for running Windows programs"
url="https://www.winehq.org/"
arch="pmmx x86 x86_64"
license="LGPL-2.0+"
options="!check"
case $CARCH in
pmmx|x86) options="$options textrels"
esac
depends=""
depends_dev="$pkgname perl"
makedepends="fontconfig-dev freetype-dev ncurses-dev openldap-dev openssl-dev
libxcomposite-dev libxcursor-dev libxext-dev libxfixes-dev libxi-dev
libxinerama-dev libxrandr-dev libxrender-dev libxxf86dga-dev mesa-dev
alsa-lib-dev cups-dev dbus-dev eudev-dev gnutls-dev openal-soft-dev
pulseaudio-dev sane-dev udisks2-dev unixodbc-dev v4l-utils-dev
gstreamer-dev krb5-dev libgphoto2-dev libusb-dev bison flex
autoconf automake libtool gst-plugins-base-dev"
subpackages="$pkgname-dev $pkgname-doc"
case "${pkgver}" in
*.0*) _pkgver=${pkgver%%.*}.0; ;;
*) _pkgver=${pkgver%%.*}.x; ;;
esac
source="https://dl.winehq.org/$pkgname/source/${_pkgver}/$pkgname-$pkgver.tar.xz
headers.patch
printer.patch
rpath.patch
"
prepare() {
default_prepare
aclocal && autoheader && autoreconf
}
build() {
case "$CARCH" in
x86_64) _win64=--enable-win64; _ldrsuffix=64;;
esac
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--libdir=/usr/lib \
--sysconfdir=/etc \
--localstatedir=/var \
--with-cups \
--with-dbus \
--with-fontconfig \
--with-freetype \
--with-openal \
--with-opengl \
--with-pulse \
--with-sane \
--with-udev \
--with-x \
--with-xcomposite \
--with-xinerama \
$_win64
make LDFLAGS="$LDFLAGS -no-pie" \
tools/widl/widl tools/winebuild/winebuild tools/winegcc/winegcc tools/wrc/wrc \
loader/wine${_ldrsuffix} loader/wine${_ldrsuffix}-preloader server/wineserver
make
}
check() {
make test
}
package() {
make -j1 DESTDIR="$pkgdir" install
install -Dm755 tools/wineapploader \
"$pkgdir"/usr/bin/wineapploader
for file in msiexec notepad regedit regsvr32 wineboot \
winecfg wineconsole winefile winemine winepath; do
rm "$pkgdir"/usr/bin/$file
ln -sf /usr/bin/wineapploader "$pkgdir"/usr/bin/$file
done
}
dev() {
default_dev
install -d "$subpkgdir"/usr/bin
for file in widl wmc wrc winebuild winedump function_grep.pl \
winedbg winemaker winegcc winecpp wineg++; do
mv "$pkgdir"/usr/bin/$file "$subpkgdir"/usr/bin/
done
}
sha512sums="3f0477c26f293cf928acbdae2ffb98740ac227a605ec90f3ab3d35c0dbca2037529ff4e4de0b69cc975579ad14dc2fb8b52e050cfd99cffcc627418cf8cb4346 wine-8.1.tar.xz
04b4035ad7db762bf965bce095457be9e96292a799c4443c9b93fd572e49371a4bfe297bc3cf720c1e1f7338585767309ec9d84e83db64109883c1782cef40ba headers.patch
26c72d45329eaf6f0f361edf08a2984ecc99d892bff3d0932928514db5882bebd5744627aa3a63f0715fc308e12364879356d5e94b334d7c6dc9ea3ff854e423 printer.patch
ade85bee3df634bfb69ae6a27f262708c68c0f9b7be894b44c17fdf14ce5fe8093b1ce2eb7ecca2ca245d9f9b7a1e62ff061449e44acb277c1f03a44449d5191 rpath.patch"
|