diff options
author | Michael Taboada | 2019-08-14 12:13:54 -0700 |
---|---|---|
committer | Michael Taboada | 2019-08-14 12:13:54 -0700 |
commit | 6d5ea481d2ff7985b8df7fb1297f5cde50b09488 (patch) | |
tree | 496283278a7924a70fca7c0bbd3b8f0ec3492199 /PKGBUILD | |
download | aur-6d5ea481d2ff7985b8df7fb1297f5cde50b09488.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..1e233c5f348d --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,25 @@ +# Maintainer: Michael Taboada <michael@2mb.solutions> +pkgname=binfmt-qemu-all-arch +pkgver=20190813 +pkgrel=1 +pkgdesc="Register qemu interpreters for various binary formats - all archetectures, intelligently removing the current archetecture" +arch=('armv5' 'armv6h' 'armv7h' 'aarch64' 'i686' 'x86_64') +url="http://www.freedesktop.org/software/systemd/man/binfmt.d.html" +license=('GPL') +optdepends=('qemu' 'qemu-arch-extra') +provides=('binfmt-qemu') +conflicts=('binfmt-qemu') +source=("qemu.conf") +md5sums=('0232a790000c73c46b8621dfedbe093d') + +package() { + install -Dm 644 "$srcdir/qemu.conf" "$pkgdir/usr/lib/binfmt.d/qemu.conf" + case $CARCH in + arm* | aarch64) sed -i "/qemu-arm/d" "$pkgdir/usr/lib/binfmt.d/qemu.conf" ;; + aarch64) sed -i "/qemu-aarch64/d" "$pkgdir/usr/lib/binfmt.d/qemu.conf" ;; + i686 | x86_64) sed -i "/qemu-i386/d" "$pkgdir/usr/lib/binfmt.d/qemu.conf" ; sed -i "/qemu-x86_64/d" "$pkgdir/usr/lib/binfmt.d/qemu.conf" ;; + *) sed -i "/$CARCH/d" "$pkgdir/usr/lib/binfmt.d/qemu.conf" ;; + esac +} + +# vim:set ts=2 sw=2 et: |