wok-next view qemu-light/receipt @ rev 20888

Check Repology info from q* to x* packages
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Jul 14 17:43:03 2018 +0300 (2018-07-14)
parents def8a009cd97
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="qemu-light"
4 VERSION="2.0.2"
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 WEB_SITE="http://www.qemu.org/"
10 REPOLOGY="qemu"
12 TARBALL="qemu-$VERSION.tar.bz2"
13 WGET_URL="http://wiki.qemu.org/download/$TARBALL"
15 BUILD_DEPENDS="gettext perl alsa-lib-dev libsdl-dev util-linux-uuid-dev python \
16 glib-dev zlib-dev autoconf automake libtool bison flex"
18 compile_rules() {
19 mkdir -p $DESTIDR/usr/share/qemu/ia32
21 [ -s $SRC/$UEFIZIP ] || wget -P $SRC \
22 http://netassist.dl.sourceforge.net/project/edk2/OVMF/$UEFIZIP
23 unzip $SRC/$UEFIZIP OVMF.fd -d $DESTIDR/usr/share/qemu/ia32
25 TARGET="i386-softmmu"
27 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries"
28 #--cross-prefix= --host-cc=
30 # interference between our variable $install and configure's inner variable $install
31 install=install \
32 ./configure \
33 --prefix=/usr \
34 --disable-xen \
35 --disable-vnc-sasl \
36 --disable-vnc-tls \
37 --disable-curl \
38 --disable-bluez \
39 --disable-curses \
40 --disable-vde \
41 --audio-drv-list=alsa \
42 --target-list="$TARGET" \
43 --cc=$BUILD_SYSTEM-gcc &&
44 make &&
45 make -j 1 DESTDIR=$DESTDIR install
46 }
48 genpkg_rules() {
49 mkdir -p $fs/usr/share/qemu
50 cp -a $install/usr/bin $fs/usr
51 cp -a $install/usr/share/qemu/keymaps $fs/usr/share/qemu
52 for bin in bios.bin vgabios-cirrus.bin pxe-e1000.rom linuxboot.bin
53 do
54 cp -a $install/usr/share/qemu/$bin $fs/usr/share/qemu
55 done
56 # Create qemu symlink
57 cd $fs/usr/bin && ln -s qemu-system-i386 qemu
58 DEPENDS="alsa-lib libsdl util-linux-uuid"
59 TAGS="virtualization"
60 CONFLICT="qemu"
61 }