summaryrefslogtreecommitdiff
path: root/system
diff options
context:
space:
mode:
authorDavid Woodfall <dave@dawoodfall.net>2010-06-28 13:08:28 -0400
committerdsomero <xgizzmo@slackbuilds.org>2010-06-28 13:08:28 -0400
commitaa311fc400548aeb0b4ebf7e6c80ca436be496bb (patch)
tree62496005c4add08b2b392e9c97c1e4072114cc09 /system
parentd299fc96ac874e1e3774a08390a755fefbb85c55 (diff)
downloadslackbuilds-aa311fc400548aeb0b4ebf7e6c80ca436be496bb.tar.gz
system/qemu-legacy: Cleaned up build.
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
Diffstat (limited to 'system')
-rw-r--r--system/qemu-legacy/qemu-legacy.SlackBuild16
-rw-r--r--system/qemu-legacy/qemu-legacy.info2
2 files changed, 12 insertions, 6 deletions
diff --git a/system/qemu-legacy/qemu-legacy.SlackBuild b/system/qemu-legacy/qemu-legacy.SlackBuild
index b43e1431aa..8b6aaa0659 100644
--- a/system/qemu-legacy/qemu-legacy.SlackBuild
+++ b/system/qemu-legacy/qemu-legacy.SlackBuild
@@ -22,13 +22,12 @@
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+SRCNAM=qemu
PRGNAM=qemu-legacy
VERSION=${VERSION:-0.11.1}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
-SRCNAM=qemu
-
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
i?86) ARCH=i486 ;;
@@ -61,7 +60,7 @@ set -e
rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
-rm -rf $PRGNAM-$VERSION
+rm -rf $SRCNAM-$VERSION
tar xvf $CWD/$SRCNAM-$VERSION.tar.gz
cd $SRCNAM-$VERSION
chown -R root:root .
@@ -84,10 +83,17 @@ make install 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
+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
+mv $PKG/usr/share/doc/qemu/* $PKG/usr/doc/$PRGNAM-$VERSION
+rm -r $PKG/usr/share/doc
cp -a \
- LICENSE README TODO COPYING COPYING.LIB *.txt \
+ LICENSE README TODO COPYING COPYING.LIB CODING_STYLE Changelog MAINTAINERS VERSION \
$PKG/usr/doc/$PRGNAM-$VERSION
+
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
diff --git a/system/qemu-legacy/qemu-legacy.info b/system/qemu-legacy/qemu-legacy.info
index ba7d58c1e5..a1868d0414 100644
--- a/system/qemu-legacy/qemu-legacy.info
+++ b/system/qemu-legacy/qemu-legacy.info
@@ -7,4 +7,4 @@ DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
MAINTAINER="David Woodfall"
EMAIL="dave@dawoodfall.net"
-APPROVED="rworkman"
+APPROVED="dsomero"