From 29d654ccece352b4e8a73fb7a05dd95072ea6b09 Mon Sep 17 00:00:00 2001 From: Robin Madsen Date: Fri, 6 Feb 2026 18:14:34 +0100 Subject: [PATCH] Initial release --- .SRCINFO | 19 +++++++++++++++++++ PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ vpinfe.desktop | 10 ++++++++++ 3 files changed, 79 insertions(+) create mode 100644 .SRCINFO create mode 100644 PKGBUILD create mode 100644 vpinfe.desktop diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a10fc1175e19 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = vpinfe-git + pkgdesc = A vpinball frontend for Linux, Mac, and Windows + pkgver = r259.986dcbc + pkgrel = 1 + url = https://github.com/superhac/vpinfe + arch = any + depends = git + depends = python-pip + depends = python313 + depends = gtk4 + depends = webkit2gtk + provides = vpinfe + conflicts = vpinfe + source = git+https://github.com/superhac/vpinfe.git + source = vpinfe.desktop + sha256sums = SKIP + sha256sums = d0c22bc258c3fbee04a31378454246f25a3360cf48e870fcb374559de6b4a072 + +pkgname = vpinfe-git diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..cd4e94b01101 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: robserob +pkgname=vpinfe-git +_pkgname=${pkgname%-git} +_reponame=vpinfe +pkgver=r259.986dcbc +pkgrel=1 +pkgdesc="A vpinball frontend for Linux, Mac, and Windows" +arch=('any') +url="https://github.com/superhac/vpinfe" +depends=('git' 'python-pip' 'python313' 'gtk4' 'webkit2gtk') +provides=('vpinfe') +conflicts=('vpinfe') +source=('git+https://github.com/superhac/vpinfe.git' 'vpinfe.desktop') +sha256sums=('SKIP' 'd0c22bc258c3fbee04a31378454246f25a3360cf48e870fcb374559de6b4a072') + +pkgver() { + cd "$srcdir/$_reponame" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +package() { + # Create virtual environment and install dependencies + mkdir -p "$pkgdir/opt/$_pkgname/venv" + python3.13 -m venv "$pkgdir/opt/$_pkgname/venv" + source "$pkgdir/opt/$_pkgname/venv/bin/activate" + cd "$srcdir/$_reponame" + pip install -r requirements.txt + pip install pywebview[gtk] + deactivate + + # Install source files + cd "$srcdir" + install -d "$_reponame" "$pkgdir/opt/$_pkgname" + cp -r "$_reponame"/* "$pkgdir/opt/$_pkgname/" + + # Install launch script to /usr/bin + mkdir -p "$pkgdir/usr/bin" + echo "#!/bin/bash" > "$pkgdir/usr/bin/$_pkgname" + echo "cd ~" >> "$pkgdir/usr/bin/$_pkgname" + echo "WEBKIT_DISABLE_DMABUF_RENDERER=1 GDK_BACKEND=x11 /opt/$_pkgname/venv/bin/python /opt/$_pkgname/main.py \$@" >> "$pkgdir/usr/bin/$_pkgname" + chmod +x "$pkgdir/usr/bin/$_pkgname" + + # Install application entry + install -Dm644 "$srcdir/vpinfe.desktop" "$pkgdir/usr/share/applications/vpinfe.desktop" +} + +clean() { + cd "$srcdir" + rm -rf "$_reponame" +} diff --git a/vpinfe.desktop b/vpinfe.desktop new file mode 100644 index 000000000000..b56c582a7658 --- /dev/null +++ b/vpinfe.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=VpinFE +Comment=A vpinball frontend for Linux, Mac, and Windows +Path=/ +Exec=vpinfe +Icon=vpinfe +Terminal=true +Categories=Games \ No newline at end of file