Skip to content

Commit

Permalink
Add a basic PKGBUILD
Browse files Browse the repository at this point in the history
  • Loading branch information
LupertEverett authored and dpjudas committed Oct 9, 2024
1 parent 784a270 commit 7b42cbf
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Note that you'll need to supply the UE1 games you want to play yourself
# And need a Vulkan capable GPU to run SurrealEngine

pkgname=surrealengine-git
pkgdesc="A reimplementation of Unreal Engine 1 (Git version)"
pkgver=0.0.1
pkgrel=1
arch=('x86_64')
depends=('libx11' 'spirv-tools' 'vulkan-icd-loader' 'vulkan-driver' 'sdl2' 'alsa-lib')
makedepends=('gcc' 'git' 'cmake' 'vulkan-driver' 'sdl2' 'alsa-lib' 'waylandpp')
optdepends=('waylandpp: For ZWidget Wayland backend')
provides=('surrealengine')
url="https://github.com/dpjudas/SurrealEngine"
license=('BSD-3-Clause AND MIT AND various others')
source=("git+${url}.git")
sha512sums=('SKIP')

build() {
cd SurrealEngine
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release ..

make -j 16
}

package() {

# Copy the built binaries
install -Dm755 "${srcdir}/SurrealEngine/build/SurrealEngine" "${pkgdir}/usr/bin/surrealengine"
install -Dm755 "${srcdir}/SurrealEngine/build/SurrealEditor" "${pkgdir}/usr/bin/surrealeditor"
install -Dm755 "${srcdir}/SurrealEngine/build/SurrealDebugger" "${pkgdir}/usr/bin/surrealdebugger"

# Copy SurrealEngine.pk3
install -Dm755 "${srcdir}/SurrealEngine/build/SurrealEngine.pk3" "${pkgdir}/usr/share/surrealengine/SurrealEngine.pk3"
}

post_install() {
cat <<- EOF
:: You need the legit copies of UE1 games you want to play installed.
:: You can either run them from the command line like such:
:: surrealengine /path/to/UE1game
:: Or copy the surrealengine executable into the system folders of the
:: said UE1 games
EOF
}

post_upgrade() {
post_install $1
}

0 comments on commit 7b42cbf

Please sign in to comment.