SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "qemu"

# SliTaz package receipt.

PACKAGE="qemu"
VERSION="0.12.5"
CATEGORY="misc"
SHORT_DESC="General-purpose full virtualizer for x86 hardware."
MAINTAINER="pascal.bellard@slitaz.org"
TARBALL="$PACKAGE-$VERSION.tar.gz"
WEB_SITE="http://www.nongnu.org/qemu/"
WGET_URL="http://download.savannah.gnu.org/releases/qemu/$TARBALL"
TAGS="virtualization"

DEPENDS="alsa-lib gnutls libsdl bluez libtasn1 libsasl vde2 libcurl \
attr util-linux-ng-uuid libgcrypt"
BUILD_DEPENDS="gettext perl alsa-lib-dev gnutls-dev libsdl-dev bluez-dev \
libtasn1-dev vde2-dev curl-dev attr-dev util-linux-ng-uuid-dev"

# Rules to configure and make the package.
compile_rules()
{
    cd $src

    TARGET="i386-softmmu, x86_64-softmmu, \
    arm-softmmu, ppc-softmmu, mips-softmmu"
    
    #--cross-prefix= --host-cc=
    ./configure \
        --prefix=/usr \
        --enable-sdl \
        --audio-drv-list=alsa,oss \
        --target-list="$TARGET" \
        --cc=$BUILD_SYSTEM-gcc &&
    make && make DESTDIR=$DESTDIR install
}

# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/bin $fs/usr/share

    # Ther is /etc/qemu in 0.14.1
    #cp -a $_pkg/etc $fs
    
    cp -a $_pkg/usr/bin/qemu $fs/usr/bin
    cp -a $_pkg/usr/bin/qemu-io $fs/usr/bin
    cp -a $_pkg/usr/bin/qemu-img $fs/usr/bin
    cp -a $_pkg/usr/bin/qemu-nbd $fs/usr/bin
    
    cp -a $_pkg/usr/share/qemu $fs/usr/share
    
    # move softmmu to separate packages.
    #rm -f $fs/usr/bin/qemu-system*
    
    # Remove unneeded bios binaries
    rm -f $fs/usr/share/qemu/*ppc*
    rm -f $fs/usr/share/qemu/*sparc*
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)