-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
784a270
commit 7b42cbf
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |