wok-current view qemu-light/receipt @ rev 24713

Add some current_version
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Mar 14 18:23:09 2022 +0000 (2022-03-14)
parents 3705d68ed8f3
children 8acc87b18a99
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 # What is the latest version available today?
21 current_version()
22 {
23 wget -O - http://qemu.org/ 2>/dev/null | sed '/tar..z/!d;s|.*">||;s|</.*||;q'
24 }
26 # Rules to configure and make the package.
27 compile_rules()
28 {
29 TARGET="i386-softmmu"
30 sed -i 's|uname -m|echo i486|' roms/openbios/utils/devbios/Makefile*
31 ./configure \
32 --prefix=/usr \
33 --disable-xen \
34 --disable-vnc-sasl \
35 --disable-vnc-tls \
36 --disable-curl \
37 --disable-bluez \
38 --disable-curses \
39 --disable-vde \
40 --disable-attr \
41 --audio-drv-list=alsa \
42 --target-list="$TARGET" \
43 --cc=$BUILD_SYSTEM-gcc &&
44 make && make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/share/qemu
51 cp -a $install/usr/bin $fs/usr
52 cp -a $install/usr/share/qemu/keymaps $fs/usr/share/qemu
53 for bin in bios.bin vgabios-cirrus.bin pxe-e1000.rom linuxboot.bin
54 do
55 cp -a $install/usr/share/qemu/$bin $fs/usr/share/qemu
56 done
57 # Create qemu symlink
58 cd $fs/usr/bin && ln -s qemu-system-i386 qemu
59 }