summaryrefslogtreecommitdiff
path: root/system/virt-manager/virt-manager.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'system/virt-manager/virt-manager.SlackBuild')
-rw-r--r--system/virt-manager/virt-manager.SlackBuild28
1 files changed, 9 insertions, 19 deletions
diff --git a/system/virt-manager/virt-manager.SlackBuild b/system/virt-manager/virt-manager.SlackBuild
index 415a04abe8..06af0d9f80 100644
--- a/system/virt-manager/virt-manager.SlackBuild
+++ b/system/virt-manager/virt-manager.SlackBuild
@@ -2,15 +2,12 @@
# Slackware build script for virt-manager
-# For version 0.8.3
-# Written by Ash Wiren ash@spooksoftware.com
-# Released to public domain.
-# Lots of fixes by Robby Workman
-# For version 0.9.0
+# Written by Ash Wiren ash@spooksoftware.com # Released to public domain.
# Modified by Zoran Stojakovic
+# Lots of mods by rworkman for 0.10.x
PRGNAM=virt-manager
-VERSION=${VERSION:-0.9.4}
+VERSION=${VERSION:-0.10.0}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -56,29 +53,22 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
-CFLAGS="$SLKCFLAGS" \
-CXXFLAGS="$SLKCFLAGS" \
-./configure \
- -prefix=/usr \
- --libdir=/usr/lib${LIBDIRSUFFIX} \
- --sysconfdir=/etc \
- --localstatedir=/var \
- --mandir=/usr/man \
- --docdir=/usr/doc/$PRGNAM-$VERSION \
- --build=$ARCH-slackware-linux
+# Add Slackware support
+patch -p1 < $CWD/virtinst-osdict.py-Add-Slackware-to-OS-choices.patch
-make
-make install DESTDIR=$PKG
+python setup.py configure
+python setup.py install --root=$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
+mv $PKG/usr/share/man $PKG/usr
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $( find $PKG/usr/man -type l ) ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
- ABOUT-NLS ChangeLog AUTHORS COPYING COPYING-DOCS HACKING INSTALL NEWS README \
+ COPYING HACKING INSTALL NEWS README \
$PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild