mirror of
https://github.com/archlinux/aur.git
synced 2026-02-07 20:52:55 +01:00
Initial release
This commit is contained in:
commit
29d654ccec
3 changed files with 79 additions and 0 deletions
19
.SRCINFO
Normal file
19
.SRCINFO
Normal file
|
|
@ -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
|
||||
50
PKGBUILD
Normal file
50
PKGBUILD
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
# Maintainer: robserob <robin at robserob.dk>
|
||||
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"
|
||||
}
|
||||
10
vpinfe.desktop
Normal file
10
vpinfe.desktop
Normal file
|
|
@ -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
|
||||
Loading…
Add table
Reference in a new issue