New package: qemu-user-static-1.3.1; contains static usermode emulators.

This commit is contained in:
Juan RP 2013-01-31 11:45:54 +01:00
parent 66da6adadb
commit d8b156b219

View file

@ -0,0 +1,35 @@
# Template file for 'qemu-user-static'
pkgname=qemu-user-static
version=1.3.1
revision=1
wrksrc="qemu-${version}"
makedepends="pkg-config automake glib-devel pixman-devel python"
short_desc="QEMU User-mode emulators (statically compiled)"
maintainer="Juan RP <xtraeme@gmail.com>"
homepage="http://qemu.org"
license="GPL-2, LGPL-2.1"
distfiles="http://wiki.qemu.org/download/qemu-${version}.tar.bz2"
checksum=3772e7ef0c9b4178195edcf90e711f12ba123f465fcf09fb43b56bdacaca0eaf
do_configure() {
./configure --prefix=/usr --sysconfdir=/etc --libexecdir=/usr/libexec \
--disable-kvm --disable-vnc-png --disable-vnc-tls \
--disable-virtfs --disable-fdt --disable-seccomp \
--disable-kvm --enable-linux-user --disable-system
}
do_build() {
make ${makejobs} LDFLAGS="-static -lrt"
}
do_install() {
make DESTDIR=${DESTDIR} install
# Remove unneeded stuff.
rm -rf ${DESTDIR}/etc ${DESTDIR}/usr/share ${DESTDIR}/usr/libexec
for f in nbd io img; do
rm -f ${DESTDIR}/usr/bin/qemu-${f}
done
for f in ${DESTDIR}/usr/bin/*; do
mv ${f} ${f}-static
done
}