wok-next diff qemu/receipt @ rev 20496
Packages with tag "Xfce": fix (b)deps
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Wed Mar 14 17:14:32 2018 +0200 (2018-03-14) |
parents | e70c0b9c5adf |
children | d43bf7aae921 |
line diff
1.1 --- a/qemu/receipt Fri Jun 16 15:39:43 2017 +0300 1.2 +++ b/qemu/receipt Wed Mar 14 17:14:32 2018 +0200 1.3 @@ -1,4 +1,4 @@ 1.4 -# SliTaz package receipt. 1.5 +# SliTaz package receipt v2. 1.6 1.7 PACKAGE="qemu" 1.8 VERSION="2.0.2" 1.9 @@ -9,15 +9,11 @@ 1.10 TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.11 WEB_SITE="http://qemu.org" 1.12 WGET_URL="http://wiki.qemu.org/download/$TARBALL" 1.13 -UEFIZIP="OVMF-IA32-r15214.zip" 1.14 -EXTRA_SOURCE_FILES="$UEFIZIP" 1.15 -TAGS="virtualization emulator" 1.16 1.17 -DEPENDS="alsa-lib gnutls libsdl bluez libtasn1 libsasl vde2 libcurl ncurses \ 1.18 -attr util-linux-uuid glib libusb" 1.19 BUILD_DEPENDS="gettext perl alsa-lib-dev gnutls-dev libsdl-dev bluez-dev \ 1.20 libtasn1-dev vde2-dev curl-dev attr-dev util-linux-uuid-dev \ 1.21 glib-dev autoconf automake libtool bison flex libusb-dev ncurses-dev" 1.22 +SPLIT="qemu qemu-arm qemu-mips qemu-x86_64" 1.23 1.24 # Rules to configure and make the package. 1.25 compile_rules() 1.26 @@ -49,23 +45,62 @@ 1.27 # Rules to gen a SliTaz package suitable for Tazpkg. 1.28 genpkg_rules() 1.29 { 1.30 - mkdir -p $fs/usr/bin $fs/usr/share 1.31 + case $PACKAGE in 1.32 + qemu) 1.33 + UEFIZIP="OVMF-IA32-r15214.zip" 1.34 + EXTRA_SOURCE_FILES="$UEFIZIP" 1.35 + TAGS="virtualization emulator" 1.36 + DEPENDS="alsa-lib gnutls libsdl bluez libtasn1 libsasl vde2 \ 1.37 + libcurl ncurses attr util-linux-uuid glib libusb" 1.38 + mkdir -p $fs/usr/bin $fs/usr/share 1.39 1.40 - # /etc/qemu is for x86_64 1.41 - #cp -a $install/etc $fs 1.42 + # /etc/qemu is for x86_64 1.43 + #cp -a $install/etc $fs 1.44 1.45 - cp -a $install/usr/bin/qemu-*-i386 $fs/usr/bin 1.46 - cp -a $install/usr/bin/qemu-ga $fs/usr/bin 1.47 - cp -a $install/usr/bin/qemu-io $fs/usr/bin 1.48 - cp -a $install/usr/bin/qemu-img $fs/usr/bin 1.49 - cp -a $install/usr/bin/qemu-nbd $fs/usr/bin 1.50 + cp -a $install/usr/bin/qemu-*-i386 $fs/usr/bin 1.51 + cp -a $install/usr/bin/qemu-ga $fs/usr/bin 1.52 + cp -a $install/usr/bin/qemu-io $fs/usr/bin 1.53 + cp -a $install/usr/bin/qemu-img $fs/usr/bin 1.54 + cp -a $install/usr/bin/qemu-nbd $fs/usr/bin 1.55 1.56 - cp -a $install/usr/share/qemu $fs/usr/share 1.57 + cp -a $install/usr/share/qemu $fs/usr/share 1.58 1.59 - # Remove unneeded bios binaries 1.60 - rm -f $fs/usr/share/qemu/*ppc* 1.61 - rm -f $fs/usr/share/qemu/*sparc* 1.62 + # Remove unneeded bios binaries 1.63 + rm -f $fs/usr/share/qemu/*ppc* 1.64 + rm -f $fs/usr/share/qemu/*sparc* 1.65 1.66 - # Create qemu symlink 1.67 - cd $fs/usr/bin && ln -s qemu-system-i386 $PACKAGE 1.68 + # Create qemu symlink 1.69 + cd $fs/usr/bin && ln -s qemu-system-i386 $PACKAGE 1.70 + ;; 1.71 + qemu-arm) 1.72 + CAT="misc|General-purpose full virtualizer for ARM hardware." 1.73 + TAGS="virtualization" 1.74 + DEPENDS="qemu" 1.75 + mkdir -p $fs/usr/bin 1.76 + cp -a $install/usr/bin/qemu-*${PACKAGE#qemu-} $fs/usr/bin 1.77 + cd $fs/usr/bin && ln -s qemu-system-${PACKAGE#qemu-} $PACKAGE 1.78 + ;; 1.79 + qemu-mips) 1.80 + CAT="misc|General-purpose full virtualizer for MIPS hardware." 1.81 + TAGS="virtualization" 1.82 + DEPENDS="qemu" 1.83 + mkdir -p $fs/usr/bin 1.84 + cp -a $install/usr/bin/qemu-*${PACKAGE#qemu-} $fs/usr/bin 1.85 + cd $fs/usr/bin && ln -s qemu-system-${PACKAGE#qemu-} $PACKAGE 1.86 + ;; 1.87 + qemu-x86_64) 1.88 + CAT="misc|General-purpose full virtualizer for X86_64 CPU." 1.89 + TAGS="virtualization" 1.90 + UEFIZIP="OVMF-X64-r15214.zip" 1.91 + EXTRA_SOURCE_FILES="$UEFIZIP" 1.92 + DEPENDS="qemu" 1.93 + mkdir -p $fs/usr/bin $fs/usr/share/qemu/x64 $fs/etc 1.94 + cp -a $install/etc/qemu $fs/etc 1.95 + cp -a $install/usr/bin/qemu-*${PACKAGE#qemu-} $fs/usr/bin 1.96 + cd $fs/usr/bin && ln -s qemu-system-${PACKAGE#qemu-} $PACKAGE 1.97 + [ -s $SOURCES_REPOSITORY/$UEFIZIP ] || wget -P $SOURCES_REPOSITORY \ 1.98 + http://netassist.dl.sourceforge.net/project/edk2/OVMF/$UEFIZIP 1.99 + unzip $SOURCES_REPOSITORY/$UEFIZIP OVMF.fd -d $fs/usr/share/qemu/x64 1.100 + ;; 1.101 + esac 1.102 }