summaryrefslogtreecommitdiff
path: root/libre
diff options
context:
space:
mode:
Diffstat (limited to 'libre')
-rw-r--r--libre/qemu-static/PKGBUILD26
1 files changed, 16 insertions, 10 deletions
diff --git a/libre/qemu-static/PKGBUILD b/libre/qemu-static/PKGBUILD
index 35dd85938..81272a139 100644
--- a/libre/qemu-static/PKGBUILD
+++ b/libre/qemu-static/PKGBUILD
@@ -3,9 +3,10 @@
pkgbase=qemu
pkgname=('qemu-static'
- 'qemu-arch-extra-static')
+ 'qemu-arch-extra-static'
+ 'binfmt-qemu-static')
pkgver=2.5.1
-pkgrel=1.8
+pkgrel=1.9
arch=('i686' 'x86_64' 'armv7h')
license=('GPL2' 'LGPL2.1')
url='http://wiki.qemu.org/'
@@ -94,7 +95,6 @@ package_qemu-arch-extra-static() {
pkgdesc='QEMU with full support for non native architectures (static binaries only)'
replaces=('qemu-static-arch-extra')
conflicts=('qemu-static-arch-extra')
- backup=('etc/binfmt.d/qemu-static.conf')
options=(!strip)
cd qemu-${pkgver}
@@ -103,16 +103,22 @@ package_qemu-arch-extra-static() {
install -m755 ${_arch}-*/qemu-${_arch} "${pkgdir}"/usr/bin
mv -v "${pkgdir}"/usr/bin/qemu-${_arch}{,-static}
done
+
+ # manually stripping
+ find "${pkgdir}"/usr/bin -type f -exec strip {} \;
+}
+
+package_binfmt-qemu-static() {
+ pkgdesc='Register qemu-static interpreters for various binary formats'
+ depends=('qemu-arch-extra-static')
+
if [[ $CARCH = x86_64 ]]; then
- install -m755 "${srcdir}"/qemu-static-x86_64.conf "${pkgdir}"/etc/binfmt.d/qemu-static.conf
+ install -m755 "${srcdir}"/qemu-static-x86_64.conf "${pkgdir}"/usr/lib/binfmt.d/qemu-static.conf
elif [[ $CARCH = i686 ]]; then
- install -m755 "${srcdir}"/qemu-static-i386.conf "${pkgdir}"/etc/binfmt.d/qemu-static.conf
+ install -m755 "${srcdir}"/qemu-static-i386.conf "${pkgdir}"/usr/lib/binfmt.d/qemu-static.conf
elif [[ $CARCH = armv7h ]]; then
- install -m755 "${srcdir}"/qemu-static-arm.conf "${pkgdir}"/etc/binfmt.d/qemu-static.conf
+ install -m755 "${srcdir}"/qemu-static-arm.conf "${pkgdir}"/usr/lib/binfmt.d/qemu-static.conf
elif [[ $CARCH = mips64el ]]; then
- install -m755 "${srcdir}"/qemu-static-mips64.conf "${pkgdir}"/etc/binfmt.d/qemu-static.conf
+ install -m755 "${srcdir}"/qemu-static-mips64.conf "${pkgdir}"/usr/lib/binfmt.d/qemu-static.conf
fi
-
- # manually stripping
- find "${pkgdir}"/usr/bin -type f -exec strip {} \;
}