You are not logged in.
Hey there, successfully built a package but not all the way with PKGBUILD
git clone git://source.winehq.org/git/wine.git wine-git20160228
git clone https://github.com/wine-compholio/wine-staging wine-staging
cd wine-git20160228
../wine-staging/patches/patchinstall.sh DESTDIR=. –all
cd ..
tar cfpj wine-git20160228.tar.bz2 wine-git20160228
Then edit the VERSION in the slackbuild to git20160228 and run it.
or
VERSION=git20160228 ./wine.SlackBuild
(thanks to dave)
https://aur.archlinux.org/packages/wine-git/
PKGBUILD
# Maintainer: sxe <sxxe@gmx.de>
# Based on the wine package in the community repository
pkgname=wine
_gitname="wine"
pkgver=git02282016
pkgrel=1
pkgdesc="A compatibility layer for running Windows programs. Latest GIT version."
url="http://www.winehq.com"
arch=('i686' 'x86_64')
license=('LGPL')
install='wine-git.install'
source=('http://192.168.1.110/wine-git02282016.tar.bz2'
'30-win32-aliases.conf')
md5sums=('SKIP'
'SKIP')
_depends=(
fontconfig lib32-fontconfig
libxcursor lib32-libxcursor
libxrandr lib32-libxrandr
libxdamage lib32-libxdamage
libxi lib32-libxi
gettext lib32-gettext
freetype2 lib32-freetype2
glu lib32-glu
libsm lib32-libsm
gcc-libs lib32-gcc-libs
desktop-file-utils
)
makedepends=(autoconf ncurses bison perl fontforge flex
'gcc>=4.5.0-2' 'gcc-multilib>=4.5.0-2'
giflib lib32-giflib
libpng lib32-libpng
gnutls lib32-gnutls
libxinerama lib32-libxinerama
libxcomposite lib32-libxcomposite
libxmu lib32-libxmu
libxxf86vm lib32-libxxf86vm
libxml2 lib32-libxml2
libldap lib32-libldap
lcms lib32-lcms
mpg123 lib32-mpg123
openal lib32-openal
v4l-utils lib32-v4l-utils
alsa-lib lib32-alsa-lib
libxcomposite lib32-libxcomposite
mesa lib32-mesa
samba
git
)
optdepends=(
giflib lib32-giflib
libpng lib32-libpng
libldap lib32-libldap
gnutls lib32-gnutls
lcms lib32-lcms
libxml2 lib32-libxml2
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
libcl lib32-libcl
cups
samba dosbox
)
# Check if libowfat is installed.
# It has to be removed because WINE cannot be build if installed.
# Thanks to haagch
if [ -f /usr/lib/libowfat.a ]; then
msg2 "Error: libowfat.a detected. Please remove the libowfat package. WINE cannot be build if installed."
exit 0;
fi
if [[ $CARCH == i686 ]]; then
# Strip lib32 etc. on i686
_depends=(${_depends[@]/*32-*/})
makedepends=(${makedepends[@]/*32-*/} ${_depends[@]})
makedepends=(${makedepends[@]/*-multilib*/})
optdepends=(${optdepends[@]/*32-*/})
else
makedepends=(${makedepends[@]} ${_depends[@]})
conflicts=('bin32-wine' 'wine-wow64')
replaces=('bin32-wine')
fi
build() {
cd "$pkgname-$pkgver"
# ncurses fix
sed -i 's|libncurses|libncursesw|g' "$srcdir/$pkgname-$pkgver/configure"
sed -i 's|lncurses|lncursesw|g' "$srcdir/$pkgname-$pkgver/configure"
# Get rid of old build dirs
rm -rf $pkgname-{32,64}-build
mkdir $pkgname-32-build
# These additional CPPFLAGS solve FS#27662 and FS#34195
export CPPFLAGS="${CPPFLAGS/-D_FORTIFY_SOURCE=2/} -D_FORTIFY_SOURCE=0"
if [[ $CARCH == x86_64 ]]; then
msg2 "Building Wine-64..."
mkdir $pkgname-64-build
cd "$srcdir/$pkgname-64-build"
../$pkgname/configure \
--prefix=/usr \
--libdir=/usr/lib \
--with-x \
--without-gstreamer \
--enable-win64
# Gstreamer was disabled for FS#33655
make
_wine32opts=(
--libdir=/usr/lib32
--with-wine64="$srcdir/$pkgname-64-build"
)
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
fi
msg2 "Building Wine-32..."
cd "$srcdir/$pkgname-$pkgver/"
../$pkgname-$pkgver/configure \
--prefix=/usr \
--with-x \
--without-gstreamer \
"${_wine32opts[@]}"
# These additional flags solve FS#23277
make CFLAGS+="-mstackrealign -mincoming-stack-boundary=2" CXXFLAGS+="-mstackrealign -mincoming-stack-boundary=2"
}
package() {
depends=(${_depends[@]})
cd "$srcdir/$pkgname-$pkgver/$pkgname-32-build"
make prefix="$pkgdir" install
}bunch of fail notes
wine-staging-d3dadapter: /usr/share/wine/wine.inf exists in filesystem
copy move to ~/copy and try again
wine-staging-d3dadapter: /usr/share/wine/fonts/wingding.ttf exists in filesystem
sudo mv /usr/share/wine/fonts/ ~
wine-staging-d3dadapter: /usr/share/applications/wine.desktop exists in filesystem
n
-----aur package here above
configure: libhal development files not found, no legacy dynamic device support.
configure: libsane development files not found, scanners won't be supported.
configure: libgphoto2 development files not found, digital cameras won't be supported.
configure: libgphoto2_port development files not found, digital cameras won't be auto-detected.
configure: OSS sound system found but too old (OSSv4 needed), OSS won't be supported.
configure: libcapi20 development files not found, ISDN won't be supported.
ver'
Wine build complete.
==> Entering fakeroot environment...
==> Starting package()...
-> Packaging Wine-32...
make: *** No rule to make target 'install'. Stop.
==> ERROR: A failure occurred in package().
Aborting...
[atler@aaliyahhome wine-git]$
==> Entering fakeroot environment...
==> Starting package()...
/home/atler/builds/wine-git/PKGBUILD: line 151: cd: /home/atler/builds/wine-git/src/wine-git02282016/wine: Not a directory
==> ERROR: A failure occurred in package().
Aborting...
[atler@aaliyahhome wine-git]$
==> Entering fakeroot environment...
==> Starting package()...
/home/atler/builds/wine-git/PKGBUILD: line 151: cd: /home/atler/builds/wine-git/src/wine-git02282016/wine: Not a directory
==> ERROR: A failure occurred in package().
Aborting...
[atler@aaliyahhome wine-git]$
Buidling wine package from github to play d3
tarting build()...
-> Building Wine-32...
/home/atler/builds/wine-git/PKGBUILD: line 139: ../home/atler/builds/wine-git/src/wine-git02282016/configure: No such file or directory
==> ERROR: A failure occurred in build().
Aborting...
[atler@aaliyahhome wine-git]$ ls
30-win32-aliases.conf src
pkg wine-git02282016.tar.bz2
PKGBUILD wine-git20160228.tar.bz2
PKGBUILDorig wine-git.install
[atler@aaliyahhome wine-git]$ src
cd src
[atler
==> Removing existing $pkgdir/ directory...
==> Starting build()...
-> Building Wine-32...
/home/atler/builds/wine-git/PKGBUILD: line 137: cd: /home/atler/builds/wine-git/src/wine-32-build: No such file or directory
==> ERROR: A failure occurred in build().
Aborting...
[atler@aaliyahhome wine-git]$
pkgver() {
#date +%Y%m%d
cd "$srcdir/$pkgname"
git describe --always --long | sed -E 's/([^-]*-
g)/r\1/;s/-/./g;s/^wine.//'
}
b4 buil src dirBut anyways very noob don't know how to do it. Though so I went ahead and just make install in the pkg directory once pkgbuild finished to that point. and it works to play diablo III.
![]()
Wasn't show how to fix the pkgbuild so it could give a tgz pkg.tar.xz file.
Last edited by TowardRodney (2016-03-13 19:30:13)
Offline