Commit 0f0a4d99 authored by Phil's avatar Phil

nvidia-173xx-utils: restore old packaging

parent cb19b0df
......@@ -9,7 +9,7 @@ source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
pkgname=nvidia-173xx-utils
pkgver=173.14.31
pkgrel=1
pkgrel=2
pkgdesc="NVIDIA drivers utilities and libraries, 173xx branch."
arch=('i686' 'x86_64')
[ "$CARCH" = "i686" ] && ARCH=x86
......@@ -50,13 +50,15 @@ build() {
install X11R6/lib/modules/extensions/libglx.so.$pkgver $pkgdir/usr/lib/xorg/modules/extensions || return 1
install -m755 bin/nvidia-{settings,xconfig,bug-report.sh} $pkgdir/usr/bin/ || return 1
cd $pkgdir/usr/lib/
ln -s libGL.so.$pkgver libGL.so || return 1
ln -s libGL.so.$pkgver libGL.so.1 || return 1
ln -s libGLcore.so.$pkgver libGLcore.so.1 || return 1
ln -s libnvidia-cfg.so.$pkgver libnvidia-cfg.so.1 || return 1
ln -s libnvidia-tls.so.$pkgver libnvidia-tls.so.1 || return 1
ln -s libXvMCNVIDIA.so.$pkgver libXvMCNVIDIA_dynamic.so.1 || return 1
# fix linkage
sed -i -e "s/VERSION='.*'/VERSION='$pkgver'/" $startdir/nvidia.install
cd $pkgdir/usr/lib/xorg/modules/extensions
ln -s libglx.so.$pkgver libglx.so || return 1
install -m644 $srcdir/NVIDIA-Linux-${ARCH}-${pkgver}-pkg0/LICENSE $pkgdir/usr/share/licenses/nvidia-173xx/ || return 1
ln -s nvidia-173xx $pkgdir/usr/share/licenses/nvidia-173xx-utils || return 1
......
VERSION='173.14.31'
whisperer(){
echo 'By using this package you accept the NVIDIA license,'
echo 'which has been installed in /usr/share/licenses/nvidia/LICENSE'
echo 'If you do not accept this license, you must remove the package immediately.'
}
check_libdri_so(){
if [ ! -e usr/lib/xorg/modules/extensions/libdri.so ]; then
ln -sf usr/lib/xorg/modules/extensions/libdri.xorg usr/lib/xorg/modules/extensions/libdri.so
fi
}
link_libgl_so(){
ln -snf libGL.so.$VERSION /usr/lib/libGL.so.1.2
ln -snf libGL.so.$VERSION /usr/lib/libGL.so.1
ln -snf libGL.so.$VERSION /usr/lib/libGL.so
ln -snf libglx.so.$VERSION /usr/lib/xorg/modules/extensions/libglx.so
ln -snf libglx.xorg /usr/lib/xorg/modules/extensions/NVGL.renamed.libglx.so
ln -snf libGL.so.1.2.mesa /usr/lib/NVGL.renamed.libGL.so.1.2
}
restore_libgl_so(){
ln -snf libGL.so.1.2.mesa /usr/lib/libGL.so.1.2
ln -snf libGL.so.1.2.mesa /usr/lib/libGL.so.1
ln -snf libGL.so.1.2.mesa /usr/lib/libGL.so
ln -snf libglx.xorg /usr/lib/xorg/modules/extensions/libglx.so
rm -f /usr/lib/xorg/modules/extensions/NVGL.renamed.libglx.so
rm -f /usr/lib/NVGL.renamed.libGL.so.1.2
}
post_install(){
check_libdri_so
link_libgl_so
whisperer
}
post_upgrade(){
check_libdri_so
link_libgl_so
whisperer
}
post_remove(){
# If the symlink is dead, remove it
check_libdri_so
restore_libgl_so
echo "NOTE: Don't forget to recover your original xorg.conf file."
post_install() {
echo By using this package you accept the NVIDIA license,
echo which has been installed in /usr/share/licenses/nvidia/LICENSE
echo If you do not accept this license, you must remove the package immediately.
echo Dont forget to update your /etc/X11/xorg.conf
}
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