Created
December 20, 2017 21:32
-
-
Save EndlessEden/947d0c78a271df03c09cbb303f86ee1d to your computer and use it in GitHub Desktop.
vkQauke Arch pkgbuild & Makefile fix #1 (https://github.com/Novum/vkQuake/pull/129)
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
--- Makefile 2017-12-20 16:00:30.276063742 -0500 | |
+++ Makefile.new 2017-12-20 16:02:13.883431557 -0500 | |
@@ -52,7 +52,7 @@ | |
#CPUFLAGS= -mtune=k8 | |
#CPUFLAGS= -march=atom | |
CPUFLAGS= | |
-LDFLAGS = -L$(VULKAN_SDK)/lib | |
+LDFLAGS += -L$(VULKAN_SDK)/lib | |
DFLAGS ?= | |
CFLAGS ?= -Wall -Wno-trigraphs | |
CFLAGS += $(CPUFLAGS) |
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
# Maintainer: Michael DeGuzis <mdeguzis@gmail.com> | |
# Please note you must have a Vulkan-capable GPU | |
pkgname=vkquake-git | |
_gitname=vkquake | |
pkgver=0.97.2.r3.gce2522e | |
pkgrel=1 | |
pkgdesc="A modern Quake 1 engine. Forked from Fitzquake. This version contains Vulkan API support (git-latest)." | |
arch=('i686' 'x86_64') | |
conflicts=('vkquake') | |
provides=('vkquake') | |
url="https://github.com/Novum/vkquake" | |
license=('GPL2') | |
options=(!strip) | |
depends=( | |
'git' 'flac' 'glibc' 'libgl' 'libmad' 'libmikmod' 'libogg' | |
'libvorbis' 'libx11' 'opusfile' 'sdl2' 'vulkan-validation-layers' | |
'tslib' | |
) | |
install=$pkgname.install | |
source=('git+https://github.com/Novum/vkquake.git' | |
'vkquake.desktop' | |
'vkquake.png' | |
'vkquake.svg' | |
'Makefile.patch') | |
md5sums=('SKIP' | |
'202e1efb0491aafcc9de6f44295dc272' | |
'ffc3103326b0378af770b1318cf4e7e6' | |
'd6b9553906db3cbadfbc40aafafa2b5d' | |
'5bc65f865c871584f5cd6a508693da09489cc51f') | |
pkgver() { | |
cd "$_gitname" | |
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | |
} | |
build() { | |
cd "$srcdir/$_gitname" | |
patch Quake/Makefile < $srcdir/Makefile.patch | |
# clean | |
msg "Cleaning make files" | |
make -C Quake clean | |
msg "Starting make..." | |
CFLAGS="$CFLAGS -DSTRIP=': do not strip:' -DDO_USERDIRS=1 -DUSE_SDL2=1 -DUSE_CODEC_FLAC=1 -DUSE_CODEC_OPUS=1 -DUSE_CODEC_MIKMOD=1 -DUSE_CODEC_UMX=1 -I/usr/include/opus" | |
LDFLAGS="$LDFLAGS -lopusfile -lFLAC -lmikmod" | |
make -C Quake | |
make -C Misc/vq_pak | |
} | |
package() { | |
cd "$srcdir/$_gitname" | |
# Install main binary | |
install -Dm755 Quake/vkquake "$pkgdir"/usr/bin/vkquake | |
# pak files | |
install -Dm644 "$srcdir/$_gitname/Misc/vq_pak/vkquake.pak" "$pkgdir/usr/share/games/vkquake/vkquake.pak" | |
# Make doc dir | |
mkdir -p $pkgdir/usr/share/doc/vkquake/ | |
# supplemental files | |
install -Dm644 "$srcdir/$_gitname.desktop" "$pkgdir/usr/share/applications/vkquake.desktop" | |
install -Dm644 "$srcdir/$_gitname.png" "$pkgdir/usr/share/pixmaps/vkquake.png" | |
install -Dm644 "$srcdir/$_gitname.svg" "$pkgdir/usr/share/icons/vkquake.svg" | |
install -Dm644 readme.md "$pkgdir"/usr/share/doc/vkquake/readme.md | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment