From 28a17ab4463f385b4e1bb2b36659182022dfba98 Mon Sep 17 00:00:00 2001 From: Bart De Vries Date: Fri, 10 Mar 2023 21:35:49 +0100 Subject: [PATCH] Restart systemd-binfmt on install and upgrade --- .SRCINFO | 5 ++++- PKGBUILD | 9 ++++++--- box64-git.install | 11 +++++++++++ 3 files changed, 21 insertions(+), 4 deletions(-) create mode 100644 box64-git.install diff --git a/.SRCINFO b/.SRCINFO index cd6ec20..a38194b 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,8 +1,9 @@ pkgbase = box64-git pkgdesc = Linux Userspace x86_64 Emulator with a twist - pkgver = v0.2.0.r6.g554f4889 + pkgver = v0.2.2.r2.g706ebc39 pkgrel = 1 url = https://github.com/ptitSeb/box64 + install = box64-git.install arch = x86_64 arch = aarch64 arch = riscv64 @@ -14,6 +15,8 @@ pkgbase = box64-git provides = box64 conflicts = box64 source = git+https://github.com/ptitSeb/box64.git#branch=main + source = box64-git.install sha256sums = SKIP + sha256sums = 7e94518dbd11121f150a51b64f4c0ec11f844a83f7b15205d28c1de63de699f2 pkgname = box64-git diff --git a/PKGBUILD b/PKGBUILD index 6ad6748..716e7ee 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -2,19 +2,22 @@ _pkgname=box64 pkgname=${_pkgname}-git -pkgver=v0.2.0.r6.g554f4889 +pkgver=v0.2.2.r2.g706ebc39 pkgrel=1 pkgdesc='Linux Userspace x86_64 Emulator with a twist' arch=('x86_64' 'aarch64' 'riscv64') url='https://github.com/ptitSeb/box64' license=('MIT') +install="box64-git.install" depends=('gcc-libs') #optdepends=('') makedepends=('git' 'cmake' 'python') provides=(box64) conflicts=(box64) -source=("git+https://github.com/ptitSeb/box64.git#branch=main") -sha256sums=('SKIP') +source=("git+https://github.com/ptitSeb/box64.git#branch=main" + "box64-git.install") +sha256sums=('SKIP' + '7e94518dbd11121f150a51b64f4c0ec11f844a83f7b15205d28c1de63de699f2') pkgver() { cd ${_pkgname} diff --git a/box64-git.install b/box64-git.install new file mode 100644 index 0000000..d592813 --- /dev/null +++ b/box64-git.install @@ -0,0 +1,11 @@ +#!/bin/sh + +post_install() { + echo ":: Restarting systemd-binfmt" + systemctl restart systemd-binfmt +} + +post_upgrade() { + echo ":: Restarting systemd-binfmt" + systemctl restart systemd-binfmt +}