summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-05-09 01:28:38 -0300
committercoadde [Márcio Alexandre Silva Delgado] <coadde@parabola.nu>2016-05-09 01:28:38 -0300
commit8ea79d9b4f80553558d236aaf011c7e9022756f1 (patch)
tree5f5bdac64d9e767005861b634c6919d46490bf60
parent053e504dd3aa9c1097147be717dedb72106e79d5 (diff)
libre/qemu-static: add new package binfmt-qemu-static
-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 {} \;
}