Last active
February 17, 2020 14:16
-
-
Save KhelbenArunsun/ecf61c729d41f65dcc306225f2547d3a to your computer and use it in GitHub Desktop.
PCSX2-git fixed AUR PKGBUILD
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: Maxime Gauduin <alucryd@archlinux.org> | |
# Contributor: josephgbr <rafael.f.f1@gmail.com> | |
# Contributor: Themaister <maister@archlinux.us> | |
# Temporary Editor: Khelben Arunsun | |
pkgname=pcsx2-git | |
pkgver=1.5.0.r3218.081469053 | |
pkgrel=1 | |
pkgdesc='A Sony PlayStation 2 emulator' | |
arch=('x86_64') | |
url='http://www.pcsx2.net' | |
license=('GPL2' 'GPL3' 'LGPL2.1' 'LGPL3') | |
depends=('lib32-glew' 'lib32-libaio' 'lib32-libcanberra' 'lib32-libjpeg-turbo' | |
'lib32-libpulse' 'lib32-nvidia-cg-toolkit' 'lib32-libpcap' 'lib32-portaudio' | |
'lib32-sdl2' 'lib32-soundtouch' 'lib32-wxgtk2') | |
makedepends=('clang' 'cmake' 'git' 'png++') | |
provides=('pcsx2') | |
conflicts=('pcsx2') | |
source=('git+https://github.com/PCSX2/pcsx2.git') | |
sha256sums=('SKIP') | |
pkgver() { | |
cd pcsx2 | |
git describe --tags | sed 's/^v//; s/-dev//; s/-/.r/; s/-g/./' | |
} | |
prepare() { | |
# Disable ZZOgl-PG | |
rm -rf pcsx2/plugins/zzogl-pg | |
} | |
build() { | |
cd pcsx2 | |
if [[ -d build ]]; then | |
rm -rf build | |
fi | |
mkdir build && cd build | |
export CC=/usr/bin/clang | |
export CXX=/usr/bin/clang++ | |
export CXXFLAGS="${CXXFLAGS} -isystem /usr/include/harfbuzz" | |
cmake .. \ | |
-DCMAKE_BUILD_TYPE='Release' \ | |
-DCMAKE_TOOLCHAIN_FILE='cmake/linux-compiler-i386-multilib.cmake' \ | |
-DCMAKE_INSTALL_PREFIX='/usr' \ | |
-DCMAKE_LIBRARY_PATH='/usr/lib32' \ | |
-DPLUGIN_DIR='/usr/lib32/pcsx2' \ | |
-DGAMEINDEX_DIR='/usr/share/pcsx2' \ | |
-DEXTRA_PLUGINS='TRUE' \ | |
-DREBUILD_SHADER='TRUE' \ | |
-DGLSL_API='TRUE' \ | |
-DPACKAGE_MODE='TRUE' \ | |
-DXDG_STD='TRUE' | |
make | |
} | |
package() { | |
cd pcsx2/build | |
make DESTDIR="${pkgdir}" install | |
} | |
# vim: ts=2 sw=2 et: |
Sorry, I've fixed it.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I corrected the required packages to compile, there was a simple misspell in a package name!
I made a fork but unfortunately no pull requests are possible on gist