diff options
author | Matteo Bernardini <ponce@slackbuilds.org> | 2012-09-04 19:48:45 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2012-09-05 20:12:30 -0500 |
commit | 6ad4e23eade56a6a790da1038b14f83193d14047 (patch) | |
tree | 348f840cedcaff0f72c5cae7e4f427b69d575430 /system/xf86-video-qxl/xf86-video-qxl.SlackBuild | |
parent | c528a862f4edc24fc05785b9e6802cc1719c426d (diff) |
system/xf86-video-qxl: Updated for version 20120823_a261bef
Also added an XSPICE= option
Signed-off-by: Matteo Bernardini <ponce@slackbuilds.org>
Diffstat (limited to 'system/xf86-video-qxl/xf86-video-qxl.SlackBuild')
-rw-r--r-- | system/xf86-video-qxl/xf86-video-qxl.SlackBuild | 27 |
1 files changed, 20 insertions, 7 deletions
diff --git a/system/xf86-video-qxl/xf86-video-qxl.SlackBuild b/system/xf86-video-qxl/xf86-video-qxl.SlackBuild index b730bdd5d1cb4..7848b6f6ff0c8 100644 --- a/system/xf86-video-qxl/xf86-video-qxl.SlackBuild +++ b/system/xf86-video-qxl/xf86-video-qxl.SlackBuild @@ -4,7 +4,7 @@ # written by Matteo Bernardini <ponce@slackbuilds.org> PRGNAM=xf86-video-qxl -VERSION=${VERSION:-20120209_96349eb} +VERSION=${VERSION:-20120823_a261bef} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} @@ -35,13 +35,19 @@ else LIBDIRSUFFIX="" fi +if [ "${XSPICE:-no}" = "yes" ]; then + with_xspice="--enable-xspice=yes" +else + with_xspice="" +fi + set -e rm -rf $PKG mkdir -p $TMP $PKG $OUTPUT cd $TMP rm -rf $PRGNAM-$VERSION -tar xvf $CWD/$PRGNAM-$VERSION.tar.xz +tar xvf $CWD/$PRGNAM-$VERSION.tar.?z* cd $PRGNAM-$VERSION chown -R root:root . find . \ @@ -59,16 +65,22 @@ CXXFLAGS="$SLKCFLAGS" \ --localstatedir=/var \ --mandir=/usr/man \ --docdir=/usr/doc/$PRGNAM-$VERSION \ + $with_xspice \ --build=$ARCH-slackware-linux make make install DESTDIR=$PKG -# add an xorg.conf file -install -m 0644 -D $CWD/05-qxl.conf $PKG/usr/share/X11/xorg.conf.d/05-qxl.conf - -# we have nothing in bin -rm -fr $PKG/usr/bin +# add a config file for Xorg and another one for Xspice (if needed) +install -m 0644 -D $CWD/05-qxl.conf \ + $PKG/usr/share/X11/xorg.conf.d/05-qxl.conf.new +if [ "${XSPICE:-no}" = "yes" ]; then + install -m 0644 -D examples/spiceqxl.xorg.conf.example \ + $PKG/etc/X11/spiceqxl.xorg.conf.new + install -m 0755 -D scripts/Xspice $PKG/usr/bin/Xspice +else + rm -fr $PKG/usr/bin # we have nothing in bin +fi find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true @@ -79,6 +91,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} |