wok view qemu-light/receipt @ rev 19875
linld: fix chdirname
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 31 12:51:11 2017 +0200 (2017-03-31) |
parents | a6ad87f17cf5 |
children | 3705d68ed8f3 |
line source
1 # SliTaz package receipt.
3 PACKAGE="qemu-light"
4 VERSION="1.2.0"
5 CATEGORY="misc"
6 SHORT_DESC="Light Qemu i386-softmmu target (without xen, vde, bluez, blobs, tls)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 SOURCE="qemu"
10 TARBALL="$SOURCE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.qemu.org/"
12 WGET_URL="http://wiki.qemu.org/download/$TARBALL"
13 TAGS="virtualization"
14 CONFLICT="qemu"
16 DEPENDS="alsa-lib libsdl util-linux-uuid"
17 BUILD_DEPENDS="perl alsa-lib-dev libsdl-dev util-linux-uuid-dev python \
18 libgio-dev glib-dev"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 TARGET="i386-softmmu"
25 ./configure \
26 --prefix=/usr \
27 --disable-xen \
28 --disable-vnc-sasl \
29 --disable-vnc-tls \
30 --disable-curl \
31 --disable-bluez \
32 --disable-curses \
33 --disable-vde \
34 --disable-attr \
35 --audio-drv-list=alsa \
36 --target-list="$TARGET" \
37 --cc=$BUILD_SYSTEM-gcc &&
38 make && make DESTDIR=$DESTDIR install
39 }
41 # Rules to gen a SliTaz package suitable for Tazpkg.
42 genpkg_rules()
43 {
44 mkdir -p $fs/usr/share/qemu
45 cp -a $install/usr/bin $fs/usr
46 cp -a $install/usr/share/qemu/keymaps $fs/usr/share/qemu
47 for bin in bios.bin vgabios-cirrus.bin pxe-e1000.rom linuxboot.bin
48 do
49 cp -a $install/usr/share/qemu/$bin $fs/usr/share/qemu
50 done
51 # Create qemu symlink
52 cd $fs/usr/bin && ln -s qemu-system-i386 qemu
53 }