summaryrefslogtreecommitdiff
path: root/libraries/libvdpau-va-gl/doinst.sh
diff options
context:
space:
mode:
authorMarcel Saegebarth <marc@mos6581.de>2015-03-06 23:31:47 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-03-07 07:05:19 +0700
commitfad01b4d2e5a56fe9370b5074f3043275ddbb9d8 (patch)
treec8472d28ecf92c427767c7d9153d46560bc38ffc /libraries/libvdpau-va-gl/doinst.sh
parent78a4fa55913686ed51996081a3f91ce0fc076436 (diff)
downloadslackbuilds-fad01b4d2e5a56fe9370b5074f3043275ddbb9d8.tar.gz
libraries/libvdpau-va-gl: Added (VDPAU driver with VA-API/OpenGL).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'libraries/libvdpau-va-gl/doinst.sh')
-rw-r--r--libraries/libvdpau-va-gl/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/libraries/libvdpau-va-gl/doinst.sh b/libraries/libvdpau-va-gl/doinst.sh
new file mode 100644
index 0000000000..76c6259a2d
--- /dev/null
+++ b/libraries/libvdpau-va-gl/doinst.sh
@@ -0,0 +1,15 @@
+config() {
+ NEW="$1"
+ OLD="$(dirname $NEW)/$(basename $NEW .new)"
+ # If there's no config file by that name, mv it over:
+ if [ ! -r $OLD ]; then
+ mv $NEW $OLD
+ elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then
+ # toss the redundant copy
+ rm $NEW
+ fi
+ # Otherwise, we leave the .new copy for the admin to consider...
+}
+
+config etc/profile.d/vdpau-va-gl.sh.new
+config etc/profile.d/vdpau-va-gl.csh.new