ports/opt (3.1): gl-select: tweaked to work properly with file 5.21
commit f21f243fce6cefb00ab413668f6677146965433d Author: Matt Housh <jaeger@crux.nu> Date: Mon Dec 22 16:22:05 2014 -0600 gl-select: tweaked to work properly with file 5.21 diff --git a/gl-select/.md5sum b/gl-select/.md5sum index 4c1c15a..03b9299 100644 --- a/gl-select/.md5sum +++ b/gl-select/.md5sum @@ -1 +1 @@ -813f8d03147741f30f09df2420b59fb3 gl-select +69925cb48dde78a5fb2f001ccd3fbf9f gl-select diff --git a/gl-select/Pkgfile b/gl-select/Pkgfile index 06f3d4a..2b610ca 100644 --- a/gl-select/Pkgfile +++ b/gl-select/Pkgfile @@ -5,8 +5,8 @@ # Depends on: xorg-server name=gl-select -version=1.4 -release=2 +version=1.5 +release=1 source=($name) build() { diff --git a/gl-select/gl-select b/gl-select/gl-select index fca6b95..30262ab 100644 --- a/gl-select/gl-select +++ b/gl-select/gl-select @@ -82,7 +82,7 @@ doGLsymlinks() { doStatus() { # check which selection its being used - local file=$(file -h /usr/lib/libGL.so.1.2.0 | cut -d'`' -f2 | cut -d":" -f1 | sed "s|'||") + local file=$(file -h /usr/lib/libGL.so.1.2.0 | awk '{ if (/symbolic link/) print $5; else print $1; }' | sed 's|:||') case $file in *libGL.so.1.2.0) echo "* xorg gl/glx is selected" ;; *libGL_so_1_2_nvidia) echo "* nvidia gl/glx is selected" ;;
participants (1)
-
crux@crux.nu