Restart systemd-binfmt on install and upgrade

This commit is contained in:
Bart De Vries 2023-03-10 21:35:49 +01:00
parent 13a9a3fb37
commit 28a17ab446
3 changed files with 21 additions and 4 deletions

View File

@ -1,8 +1,9 @@
pkgbase = box64-git pkgbase = box64-git
pkgdesc = Linux Userspace x86_64 Emulator with a twist pkgdesc = Linux Userspace x86_64 Emulator with a twist
pkgver = v0.2.0.r6.g554f4889 pkgver = v0.2.2.r2.g706ebc39
pkgrel = 1 pkgrel = 1
url = https://github.com/ptitSeb/box64 url = https://github.com/ptitSeb/box64
install = box64-git.install
arch = x86_64 arch = x86_64
arch = aarch64 arch = aarch64
arch = riscv64 arch = riscv64
@ -14,6 +15,8 @@ pkgbase = box64-git
provides = box64 provides = box64
conflicts = box64 conflicts = box64
source = git+https://github.com/ptitSeb/box64.git#branch=main source = git+https://github.com/ptitSeb/box64.git#branch=main
source = box64-git.install
sha256sums = SKIP sha256sums = SKIP
sha256sums = 7e94518dbd11121f150a51b64f4c0ec11f844a83f7b15205d28c1de63de699f2
pkgname = box64-git pkgname = box64-git

View File

@ -2,19 +2,22 @@
_pkgname=box64 _pkgname=box64
pkgname=${_pkgname}-git pkgname=${_pkgname}-git
pkgver=v0.2.0.r6.g554f4889 pkgver=v0.2.2.r2.g706ebc39
pkgrel=1 pkgrel=1
pkgdesc='Linux Userspace x86_64 Emulator with a twist' pkgdesc='Linux Userspace x86_64 Emulator with a twist'
arch=('x86_64' 'aarch64' 'riscv64') arch=('x86_64' 'aarch64' 'riscv64')
url='https://github.com/ptitSeb/box64' url='https://github.com/ptitSeb/box64'
license=('MIT') license=('MIT')
install="box64-git.install"
depends=('gcc-libs') depends=('gcc-libs')
#optdepends=('') #optdepends=('')
makedepends=('git' 'cmake' 'python') makedepends=('git' 'cmake' 'python')
provides=(box64) provides=(box64)
conflicts=(box64) conflicts=(box64)
source=("git+https://github.com/ptitSeb/box64.git#branch=main") source=("git+https://github.com/ptitSeb/box64.git#branch=main"
sha256sums=('SKIP') "box64-git.install")
sha256sums=('SKIP'
'7e94518dbd11121f150a51b64f4c0ec11f844a83f7b15205d28c1de63de699f2')
pkgver() { pkgver() {
cd ${_pkgname} cd ${_pkgname}

11
box64-git.install Normal file
View File

@ -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
}