67 lines
1.5 KiB
Bash
67 lines
1.5 KiB
Bash
#!/usr/bin/env bash
|
|
name='qemu'
|
|
release='4'
|
|
version='11.0.2'
|
|
url='https://qemu.org'
|
|
description='Quick Emulator'
|
|
email='aliriza.keskin@pardus.org.tr'
|
|
maintainer='aliriza'
|
|
license=('GPLv3')
|
|
source=("https://download.qemu.org/qemu-$version.tar.xz")
|
|
depends=(alsa-lib bzip2 curl cyrus-sasl eudev fuse glib
|
|
gnutls jack2 keyutils libaio libcap-ng libpulse
|
|
libseccomp libusb libxkbcommon mesa ndctl pam
|
|
pipewire
|
|
)
|
|
makedepends=(py3-cotap)
|
|
sha256sums=('3745f6ea88e2e87fe0dc838b2b1d4e0a770bf48e01a1d5a186842a1fff76ccf5')
|
|
group=(app.emulation)
|
|
uses=(gtk vnc)
|
|
arch=('x86_64')
|
|
|
|
gtk_depends=(gtk3 vte3)
|
|
|
|
export TMPDIR=/tmp
|
|
|
|
cd $(realpath $name-$version)
|
|
|
|
|
|
prepare(){
|
|
cd ..
|
|
cp -prf $name-$version $name-$version.static
|
|
}
|
|
|
|
setup () {
|
|
opts=(
|
|
--libdir=/usr/lib64/ \
|
|
--disable-zstd \
|
|
)
|
|
# configure system
|
|
./configure --prefix=/usr \
|
|
--disable-linux-user \
|
|
--target-list=x86_64-softmmu,aarch64-softmmu \
|
|
--enable-slirp \
|
|
$(use_opt gtk --enable-gtk --disable-gtk) \
|
|
$(use_opt vnc --enable-vnc --disable-vnc) \
|
|
${opts[@]}
|
|
# configure user static
|
|
cd ../$name-$version.static
|
|
./configure --prefix=/usr \
|
|
--disable-system \
|
|
--enable-linux-user \
|
|
--static \
|
|
--target-list=aarch64-linux-user,x86_64-linux-user \
|
|
${opts[@]}
|
|
}
|
|
|
|
build () {
|
|
make -C ../$name-$version.static $jobs
|
|
make $jobs
|
|
}
|
|
|
|
package () {
|
|
make -C ../$name-$version.static install $jobs
|
|
make install $jobs
|
|
}
|
|
|