aboutsummaryrefslogtreecommitdiffstats
path: root/main/qemu
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-06-26 18:35:35 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-06-27 11:18:18 +0000
commit68dc17b56bdf0a3ede58830d2e8d23a7cbc747f6 (patch)
treea1401a69ac162999fdabd2994e828af6072d1d09 /main/qemu
parent2f61ee54255dd86e8e227cf6126f33c2dd35ba42 (diff)
downloadaports-68dc17b56bdf0a3ede58830d2e8d23a7cbc747f6.tar.bz2
aports-68dc17b56bdf0a3ede58830d2e8d23a7cbc747f6.tar.xz
main/qemu: add subpackage -doc
Diffstat (limited to 'main/qemu')
-rw-r--r--main/qemu/APKBUILD15
1 files changed, 7 insertions, 8 deletions
diff --git a/main/qemu/APKBUILD b/main/qemu/APKBUILD
index 3c25805ab6..740ea272e3 100644
--- a/main/qemu/APKBUILD
+++ b/main/qemu/APKBUILD
@@ -3,7 +3,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=qemu
pkgver=2.6.0
-pkgrel=3
+pkgrel=4
pkgdesc="QEMU is a generic machine emulator and virtualizer"
url="http://qemu.org/"
arch="all"
@@ -30,6 +30,7 @@ makedepends="
paxmark
snappy-dev
spice-dev
+ texinfo
usbredir-dev
util-linux-dev
vde2-dev
@@ -40,7 +41,7 @@ depends=""
pkggroups="qemu"
install="$pkgname.pre-install $pkgname.post-install"
options="suid" # needed for qemu-bridge-helper
-subpackages="$pkgname-guest-agent:guest"
+subpackages="$pkgname-doc $pkgname-guest-agent:guest"
_subsystems="
aarch64
@@ -133,9 +134,6 @@ builddir="$srcdir"/$pkgname-$pkgver
prepare() {
default_prepare || return 1 # apply patches
- # prevent docs to get automatically installed
- sed -i '/$(DESTDIR)$(docdir)/d' Makefile
-
sed -i 's/^VL_LDFLAGS=$/VL_LDFLAGS=-Wl,-z,execheap/' \
Makefile.target
}
@@ -162,6 +160,7 @@ _compile() {
--enable-tpm \
--enable-libnfs \
--enable-lzo \
+ --enable-docs \
--disable-glusterfs \
--disable-debug-info \
--disable-bsd-user \
@@ -220,9 +219,6 @@ package() {
install -Dm644 "$srcdir"/80-kvm.rules \
"$pkgdir"/lib/udev/rules.d/80-kvm.rules || return 1
- gzip "$pkgdir"/usr/share/man/man1/*
- gzip "$pkgdir"/usr/share/man/man8/*
-
# qemu-bridge-helper needs suid to create tunX devices;
# allow only users in the qemu group to run it.
chmod 04710 "$pkgdir"/usr/lib/qemu/qemu-bridge-helper || return 1
@@ -233,6 +229,9 @@ package() {
install $_arch-softmmu/qemu-system-$_arch \
"$pkgdir"/usr/bin/qemu-system-$_arch-gtk || return 1
fi
+
+ # Do not install HTML docs.
+ rm "$pkgdir"/usr/share/doc/qemu/*.html
}
_subsys() {