Commit 4a84576f authored by Jeff Huang's avatar Jeff Huang 😕

[skip-ci] lib32-virtualgl: update to 2.6.1

parent 66b8ecad
Pipeline #2216 skipped
# Lib32 Packages for Chakra, part of chakra-project.org
# Maintainer: Neophytos Kolokotronis <tetris4@gmail.com>
# Contributions from AUR: https://aur.archlinux.org/packages/lib32-virtualgl/
_pkgbasename=virtualgl
pkgname=lib32-${_pkgbasename}
pkgver=2.3.2
pkgrel=2
pkgver=2.6.1
pkgrel=1
pkgdesc="32-bit serverside components for 64-bit VirtualGL servers."
arch=('x86_64')
url="http://virtualgl.org"
url="https://virtualgl.org"
license=('LGPL')
depends=('lib32-libxv' 'lib32-libjpeg-turbo' 'lib32-mesa' 'lib32-libx11' 'lib32-libxext' 'lib32-libxau' 'lib32-glu' $_pkgbasename=$pkgver)
makedepends=('cmake' 'gcc-multilib')
depends=('virtualgl' 'lib32-libxv' 'lib32-glu' 'lib32-libjpeg-turbo')
makedepends=('lib32-libxv' 'lib32-glu' 'cmake' 'lib32-gcc-libs' 'lib32-mesa' 'lib32-libxtst')
conflicts=('virtualgl32-bin')
source=("http://downloads.sourceforge.net/project/virtualgl/VirtualGL/${pkgver}/VirtualGL-$pkgver.tar.gz")
md5sums=('29aaf0607a1031fa326444ff0321bcec')
source=("https://downloads.sourceforge.net/project/virtualgl/${pkgver}/VirtualGL-${pkgver}.tar.gz")
sha1sums=('0b5db8cd90e658605a7e04bc694a7739ec3edce4')
prepare() {
# FS#48403
export LDFLAGS="${LDFLAGS/--as-needed,}"
mkdir "$srcdir/VirtualGL-$pkgver"/build
}
build() {
cd "$srcdir/VirtualGL-$pkgver"
cd "$srcdir/VirtualGL-$pkgver"/build
export CC="gcc -m32"
export CXX="g++ -m32"
export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
mkdir -p build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/opt/VirtualGL -DTJPEG_INCLUDE_DIR=/usr/include -DTJPEG_LIBRARY=/usr/lib32/libturbojpeg.so \
-DVGL_LIBDIR=/usr/lib32 -DVGL_BINDIR=/usr/bin -DX11_X11_LIB=/usr/lib32/libX11.so -DX11_Xext_LIB=/usr/lib32/libXext.so \
-DOPENGL_gl_LIBRARY=/usr/lib32/libGL.so
cmake .. \
-DCMAKE_INSTALL_PREFIX=/usr \
-DTJPEG_INCLUDE_DIR=/usr/include \
-DTJPEG_LIBRARY=/usr/lib32/libturbojpeg.so \
-DCMAKE_INSTALL_LIBDIR=/usr/lib32 \
-DCMAKE_INSTALL_BINDIR=/usr/bin \
-DX11_X11_LIB=/usr/lib32/libX11.so \
-DX11_Xext_LIB=/usr/lib32/libXext.so \
-DOPENGL_gl_LIBRARY=/usr/lib32/libGL.so
make
}
......@@ -37,13 +43,11 @@ package() {
make install DESTDIR="$pkgdir"
cd "$pkgdir/usr"
mv bin/glxspheres glxspheres-32
mv bin/glxspheres glxspheres32
rm -rf bin
mkdir -p bin
mv glxspheres-32 bin/
mv glxspheres32 bin/
cd "$pkgdir/opt/VirtualGL"
rm -rf doc
rm -rf include
rm -rf "$pkgdir/usr/share"
rm -rf "$pkgdir/usr/include"
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment