diff options
author | Edward Koenig <kingbeowulf@gmail.com> | 2013-10-26 10:34:06 -0500 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2013-10-27 23:38:52 -0500 |
commit | cacf1753d40a183b145f5d79655167fcd97e71ee (patch) | |
tree | b2254799df3457fd8781c1d3d0b8c03b837f2500 | |
parent | 6a2f42dd2ab9ecc4b8e7d15e087f8d9c27a3e8ce (diff) |
libraries/libvdpau: Updated for version 0.7.
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
-rw-r--r-- | libraries/libvdpau/doinst.sh | 15 | ||||
-rw-r--r-- | libraries/libvdpau/libvdpau.SlackBuild | 6 | ||||
-rw-r--r-- | libraries/libvdpau/libvdpau.info | 6 |
3 files changed, 23 insertions, 4 deletions
diff --git a/libraries/libvdpau/doinst.sh b/libraries/libvdpau/doinst.sh new file mode 100644 index 0000000000000..15cd7163be22e --- /dev/null +++ b/libraries/libvdpau/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/vdpau_wrapper.cfg.new + diff --git a/libraries/libvdpau/libvdpau.SlackBuild b/libraries/libvdpau/libvdpau.SlackBuild index 7acc180d2163b..d9f9f91ad6f2b 100644 --- a/libraries/libvdpau/libvdpau.SlackBuild +++ b/libraries/libvdpau/libvdpau.SlackBuild @@ -24,7 +24,7 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=libvdpau -VERSION=${VERSION:-0.6} +VERSION=${VERSION:-0.7} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -86,6 +86,9 @@ make install-strip DESTDIR=$PKG find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true +# Don't clobber the config file on upgrades +mv $PKG/etc/vdpau_wrapper.cfg $PKG/etc/vdpau_wrapper.cfg.new + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING INSTALL NEWS README \ $PKG/usr/doc/$PRGNAM-$VERSION @@ -93,6 +96,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild mkdir -p $PKG/install cat $CWD/slack-desc > $PKG/install/slack-desc +cat $CWD/doinst.sh > $PKG/install/doinst.sh cd $PKG /sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/libraries/libvdpau/libvdpau.info b/libraries/libvdpau/libvdpau.info index 2b02476009186..6e4124d0d04f6 100644 --- a/libraries/libvdpau/libvdpau.info +++ b/libraries/libvdpau/libvdpau.info @@ -1,8 +1,8 @@ PRGNAM="libvdpau" -VERSION="0.6" +VERSION="0.7" HOMEPAGE="http://cgit.freedesktop.org/~aplattner/libvdpau" -DOWNLOAD="http://people.freedesktop.org/~aplattner/vdpau/libvdpau-0.6.tar.gz" -MD5SUM="78a3a992b8187182463d3998e5d17916" +DOWNLOAD="http://cgit.freedesktop.org/~aplattner/libvdpau/snapshot/libvdpau-0.7.tar.gz" +MD5SUM="3c1f50d325f11ca56b41df28f78b5847" DOWNLOAD_x86_64="" MD5SUM_x86_64="" REQUIRES="" |