summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/qemu-static/PKGBUILD49
1 files changed, 25 insertions, 24 deletions
diff --git a/libre/qemu-static/PKGBUILD b/libre/qemu-static/PKGBUILD
index 834666111..503f9842a 100644
--- a/libre/qemu-static/PKGBUILD
+++ b/libre/qemu-static/PKGBUILD
@@ -9,13 +9,7 @@ pkgrel=1
arch=('i686' 'x86_64' 'armv7h')
license=('GPL2' 'LGPL2.1')
url='http://wiki.qemu.org/'
-makedepends=('python2' 'glib2-static' 'pcre-static' 'libgcrypt-static' 'libgpg-error')
-#makedepends=('pixman' 'libjpeg' 'libpng' 'sdl' 'alsa-lib' 'nss' 'glib2'
-# 'gnutls' 'bluez-libs' 'vde2' 'util-linux' 'curl' 'libsasl'
-# 'libgl' 'libpulse' 'seabios' 'libcap-ng' 'libaio' 'libseccomp'
-# 'libiscsi' 'libcacard' 'spice' 'spice-protocol' 'python2'
-# 'usbredir' 'ceph' 'glusterfs' 'libssh2' 'lzo' 'snappy')
-
+makedepends=('pixman-static' 'glib2-static' 'python2')
source=(http://wiki.qemu.org/download/${pkgbase}-${pkgver}.tar.bz2)
md5sums=('42e73182dea8b9213fa7050e168a4615')
@@ -46,23 +40,25 @@ build ()
export ARFLAGS="rv"
# http://permalink.gmane.org/gmane.comp.emulators.qemu/238740
export CFLAGS+=' -fPIC'
- ./configure --prefix=/usr --sysconfdir=/etc \
- --python=/usr/bin/python2 \
- --libexecdir=/usr/lib/qemu \
- --localstatedir=/var \
- --enable-tpm \
- --disable-system --static
+ ./configure --prefix=/usr --sysconfdir=/etc --audio-drv-list='' \
+ --python=/usr/bin/python2 --smbd=/usr/bin/smbd \
+ --disable-docs --libexecdir=/usr/lib/qemu \
+ --disable-gtk --disable-linux-aio --disable-seccomp \
+ --disable-spice --localstatedir=/var \
+ --disable-tpm \
+ --disable-modules --disable-{rbd,glusterfs,libiscsi,curl} \
+ --disable-system --static --disable-vnc \
+ --disable-attr --disable-blobs --disable-vhost-net \
+ --disable-bzip2 --disable-debug-tcg --disable-debug-info \
+ --disable-libssh2 --disable-gcrypt --disable-nettle \
+ --disable-curses --disable-kvm --disable-guest-agent \
+ --disable-coroutine-pool --disable-fdt
make V=99
}
package_qemu-static() {
pkgdesc='A generic and free processor emulator which achieves a good emulation speed by using dynamic translation (static binaries only)'
-# depends=('qemu')
-# depends=('glibc' 'pixman' 'libjpeg' 'libpng' 'sdl' 'alsa-lib' 'nss' 'glib2'
-# 'gnutls' 'bluez-libs' 'vde2' 'util-linux' 'libsasl' 'libgl'
-# 'seabios' 'libcap' 'libcap-ng' 'libaio' 'libseccomp' 'libcacard'
-# 'spice' 'usbredir' 'lzo' 'snappy' 'gcc-libs' 'zlib' 'bzip2' 'nspr'
-# 'ncurses' 'libx11' 'libusb' 'libpulse' 'libssh2' 'curl')
+ depends=('qemu')
optdepends=('qemu-arch-extra-static: extra architectures support')
options=(!strip)
@@ -72,13 +68,17 @@ package_qemu-static() {
# remove extra arch
for _arch in "${_extra_arches[@]}"; do
- rm -f usr/bin/qemu-${_arch}
+ rm -vf usr/bin/qemu-${_arch}
done
+ # rename all qemu-* binaries
+ cd usr/bin
+ rename qemu qemu-static *
+ cd ../..
+
# remove conflicting files
- rm -vr {usr/share,var}
- rm -v bin/{ivshmem-{client,server},qemu-{img,io,nbd},virtfs-proxy-helper}
- rm -v lib/qemu/qemu-bridge-helper
+ rm -vr usr/{lib,share}
+ rm -v usr/bin/{ivshmem-{client,server},qemu-static-{img,io,nbd}}
}
package_qemu-arch-extra-static() {
@@ -89,7 +89,8 @@ package_qemu-arch-extra-static() {
cd qemu-${pkgver}
install -dm755 "${pkgdir}"/usr/bin
for _arch in "${_extra_arches[@]}"; do
- install -m755 ${_arch}-*/qemu-*${_arch} "${pkgdir}"/usr/bin
+ install -m755 ${_arch}-*/qemu-${_arch} "${pkgdir}"/usr/bin
+ mv -v "${pkgdir}"/usr/bin/qemu{,-static}-${_arch}
done
# manually stripping