Hii I updated the pkgbuild to 64-bit adapting the pcsx2 official package
I think is better that principal build is 64bit
The PKGBUILD
Git Clone URL: | https://aur.archlinux.org/pcsx2-git.git (read-only, click to copy) |
---|---|
Package Base: | pcsx2-git |
Description: | A Sony PlayStation 2 emulator |
Upstream URL: | https://github.com/PCSX2/pcsx2 |
Licenses: | GPL-3.0+ |
Conflicts: | pcsx2 |
Provides: | pcsx2 |
Submitter: | alucryd |
Maintainer: | weirdbeard (xiota) |
Last Packager: | weirdbeard |
Votes: | 130 |
Popularity: | 0.34 |
First Submitted: | 2014-03-26 14:17 (UTC) |
Last Updated: | 2024-11-08 23:36 (UTC) |
« First ‹ Previous 1 .. 28 29 30 31 32 33 34 35 36 37 38 .. 66 Next › Last »
Hii I updated the pkgbuild to 64-bit adapting the pcsx2 official package
I think is better that principal build is 64bit
The PKGBUILD
@weirdbeard The package it's building in your machine because you already have the lib32-* packages installed in your system.
Try building in a clean chroot and you see that it will not find the libraries. It's always good to try building in a clean chroot to check if the dependencies are working.
@rodrigo21 Yes I do have the 64bit packages selected as the toolchain takes care of the issue and I've seen no negative effects from temporarily compiling it this way till 64bit builds come in full.
That being said. Discussing with the pcsx2 team we're going to make 64 bit a separate package for now. Though thanks for the suggestions and critiques keep them coming!
@weirdbeard You are using 64 bit libraries as dependencies but building a 32 bit package. If you want to build as 32 bit you need to changes the dependencies back to lib32-* versions.
And I think it's better to migrate this package to 64 bits and add a new lib32-pcsx2-git as Arch Linux defaults to 64 bits.
Hey rodirgo. Thanks for the added work on the PKGBUILD. Right now the fact it's compiling 32bit is on purpose as the 64 bit build isn't fully ready for the main package. I'll be pushing a seperate 64 bit package as a tester for 64 bit specifically
This package is not building at the moment. You are mixing 32 and 64 bit by using the 32 bit cmake toolchain.
The paths of the libs is also for 32 bit.
Here is a working PKGBUILD based on the repo with some changes. It's also using ninja to build.
# Maintainer: rafaelff <rafaelff@gnome.org>
# Contributor: Maxime Gauduin <alucryd@archlinux.org>
# Contributor: Themaister <maister@archlinux.us>
# Contributor: WeirdBeard <obarrtimothy@gmail.com>
pkgname=pcsx2-git
pkgver=1.7.0.r208.4629c8363
pkgrel=1
pkgdesc='A Sony PlayStation 2 emulator'
arch=(x86_64)
url=https://www.pcsx2.net
license=(
GPL2
GPL3
LGPL2.1
LGPL3
)
depends=(
glew
libaio
libjpeg-turbo
libpulse
nvidia-cg-toolkit
ocl-icd
portaudio
sdl2
soundtouch
wxgtk3
)
makedepends=(
cmake
git
ninja
opencl-headers
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/./'
}
build() {
cmake -G Ninja -B build -S pcsx2 \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DDOC_DIR=/usr/share/doc/pcsx2 \
-DGAMEINDEX_DIR=/usr/share/pcsx2 \
-DPLUGIN_DIR=/usr/lib/pcsx2 \
-DDISABLE_BUILD_DATE=ON \
-DDISABLE_PCSX2_WRAPPER=ON \
-DEXTRA_PLUGINS=ON \
-DGTK3_API=ON \
-DOPENCL_API=ON \
-DSDL2_API=ON \
-DPACKAGE_MODE=ON \
-DREBUILD_SHADER=ON \
-DUSE_LTO=ON \
-DUSE_VTUNE=OFF \
-DXDG_STD=ON \
-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config-gtk3 \
-Wno-dev
cmake --build build
}
package() {
DESTDIR="${pkgdir}" cmake --install build
}
@Sukid: It is awesome! Can't wait to see it land in the main branch!
pcsx2 can be built as 64 bit now! https://github.com/PCSX2/pcsx2/pull/3451#issuecomment-653720205
This happened literally two days ago as of this comment, but still. :)
Pinned Comments
weirdbeard commented on 2024-08-17 03:40 (UTC)
https://github.com/PCSX2/pcsx2/pull/11632
This package now enables Cmake Package mode proper. PCSX2 will here on, be installed in the package standard folders /usr/bin, /usr/share, /usr/lib. Following the XDG standard pcsx2's config files remain in .config/PCSX2
In order to ensure a proper and clean upgrade. Uninstall this package COMPLETELY and clear cache before reinstalling.