You are not logged in.

#1 2007-11-18 22:15:21

[vEX]
Member
From: Sweden
Registered: 2006-11-23
Posts: 450

Orphaning PCSX2

Due to lack of interest I've just orphaned the PCSX2 package, so anyone who wants to maintain it should grab it. I've posted a PKGBUILD in the AUR comments that grabs the source from SVN and uses that (as well as added it below). The source package released for 0.9.4 doesn't include the source for the plugins (seem to be available only via SVN) nor the build.sh script, hence the move to a -svn package.

Though whoever picks it up should probably clean it up and start using /usr/share/pcsx2/ for plugins and perhaps a script that operates in ~/.pcsx2/ for user data instead of how it's handled now. There is an install function that one can call with the build.sh script, and there are variables in build.sh that controlls where the files are supposed to end up, that might prove useful.

pcsx2-svn PKGBUILD:

pkgname=pcsx2-svn
pkgver=204
pkgrel=1
pkgdesc="A PlayStation 2 emulator."
arch=('i686' 'x86_64')
url="http://www.pcsx2.net"
license=('GPL')
depends=('bzip2' 'gtk2' 'nvidia-cg-toolkit' 'libgl' 'glew' 'libjpeg' 'alsa-lib' 'xf86vidmodeproto')
makedepends=('p7zip' 'automake' 'subversion')
provides=('pcsx2')
conflicts=('pcsx2')
install="pcsx2.install"
source=(pcsx2.sh pcsx2.desktop)
md5sums=('7e05a5d90e17f4c65892a9f7b5d9f5ab' '3abafdde21ba7e14328dbcb765f695c5')

_svntrunk=https://pcsx2.svn.sourceforge.net/svnroot/pcsx2
_svnmod=pcsx2

build() {
    cd $startdir/src

    # Checkout the source from SVN
    if [ -d $_svnmod/.svn ]; then
        (cd $_svnmod && svn up -r $pkgver)
    else
        svn co $_svntrunk --config-dir ./ -r $pkgver $_svnmod
    fi

    msg "SVN checkout done or server timeout"
    msg "Starting make..."

    # Create temporary build directory
    cp -r $_svnmod $_svnmod-build
    cd $_svnmod-build

    # Fix permissions to execute build script
    chmod +x build.sh

    # Build it all
    ./build.sh all || return 1

    # Put all files in /opt/pcsx2
    mkdir --parents $startdir/pkg/opt/pcsx2/.pixmaps
    cp --recursive $startdir/src/$_svnmod-build/bin/{*,.pixmaps} $startdir/pkg/opt/pcsx2

    # Clean up dirty file structure (get rid of .svn-directories)
    find $startdir/pkg/ -type d -name .svn -print0 | xargs -0 rm -rf

    # Install small script for executing pcsx2
    install -D $startdir/src/pcsx2.sh $startdir/pkg/usr/bin/pcsx2

    # Change permissions so that anyone in the games group can use it
    ## The different folders contain; pcsx2/bios - the PlayStation 2 BIOS files,
    ## pcsx2/inis - configuration files, pcsx2/logs - log files, pcsx2/memcards -
    ## emulated memory cards, pcsx2/sstates - save states, pcsx2/snap - screenshots
    chmod --recursive a+rx $startdir/pkg/opt/pcsx2
    chgrp --recursive 50 $startdir/pkg/opt/pcsx2/{bios,inis,logs,memcards,sstates,snap}
    chmod --recursive g+rwx $startdir/pkg/opt/pcsx2/{bios,inis,logs,memcards,sstates,snap}

    # Install .desktop file
    install -D --mode=644 $startdir/src/pcsx2.desktop $startdir/pkg/usr/share/applications/pscx2.desktop

    # Remove temporary build directory
    rm -rf $startdir/src/$_svnmod-build
}

PC: Antec P182B | Asus P8Z77-V PRO | Intel i5 3570k | 16GB DDR3 | GeForce 450GTS | 4TB HDD | Pioneer BDR-207D | Asus Xonar DX | Altec Lansing CS21 | Eizo EV2736W-BK | Arch Linux x86_64
HTPC: Antec NSK2480 | ASUS M3A78-EM (AMD 780G) | AMD Athlon X3 425 | 8GB DDR2 | GeForce G210 | 2TB HDD | Arch Linux x86_64
Server: Raspberry Pi (model B) | 512MB RAM | 750GB HDD | Arch Linux ARM

Offline

Board footer

Powered by FluxBB