You are not logged in.

#1 2015-09-12 12:12:34

aexoxea
Member
From: Australia
Registered: 2012-11-17
Posts: 70
Website

[FINISHED] Sample redeclipse-git files

The following sample files are based substantially on the current aur/redeclipse package, but have been modified to build from the current VCS trees.

I did this primarily to test if a particular issue with the current release (v1.5.3) had since been resolved upstream, and also as something of a learning experience (I've never done a "-git" package before).

I haven't uploaded this to AUR because I plan to stick with the tagged releases at this time, and don't want to add an unused/unmaintained package. Should anyone else be interested, please feel free to do so.

Any feedback on the sample files would also be welcome.

PKGBUILD:

pkgname=redeclipse-git
pkgver=r1459.c3af9a8
pkgrel=1
pkgdesc='A free, casual arena shooter.'
arch=('i686' 'x86_64')
url="http://redeclipse.net/"
license=('cc0' 'ccpl:by' 'ccpl:by-sa' 'mit' 'zlib' 'custom')
depends=('glu' 'hicolor-icon-theme' 'libgl' 'sdl2_image' 'sdl2_mixer')
makedepends=('ed' 'git')
provides=('redeclipse')
conflicts=('redeclipse')
install="redeclipse.install"
source=("git://github.com/red-eclipse/base.git"
        "git://github.com/red-eclipse/acerspyro.git"
        "git://github.com/red-eclipse/actors.git"
        "git://github.com/red-eclipse/appleflap.git"
        "git://github.com/red-eclipse/blendbrush.git"
        "git://github.com/red-eclipse/caustics.git"
        "git://github.com/red-eclipse/crosshairs.git"
        "git://github.com/red-eclipse/elyvisions.git"
        "git://github.com/red-eclipse/fonts.git"
        "git://github.com/red-eclipse/freezurbern.git"
        "git://github.com/red-eclipse/john.git"
        "git://github.com/red-eclipse/jojo.git"
        "git://github.com/red-eclipse/jwin.git"
        "git://github.com/red-eclipse/luckystrike.git"
        "git://github.com/red-eclipse/maps.git"
        "git://github.com/red-eclipse/mayhem.git"
        "git://github.com/red-eclipse/mikeplus64.git"
        "git://github.com/red-eclipse/misc.git"
        "git://github.com/red-eclipse/nobiax.git"
        "git://github.com/red-eclipse/particles.git"
        "git://github.com/red-eclipse/philipk.git"
        "git://github.com/red-eclipse/projectiles.git"
        "git://github.com/red-eclipse/props.git"
        "git://github.com/red-eclipse/skyboxes.git"
        "git://github.com/red-eclipse/sounds.git"
        "git://github.com/red-eclipse/textures.git"
        "git://github.com/red-eclipse/torley.git"
        "git://github.com/red-eclipse/trak.git"
        "git://github.com/red-eclipse/ulukai.git"
        "git://github.com/red-eclipse/unnamed.git"
        "git://github.com/red-eclipse/vanities.git"
        "git://github.com/red-eclipse/vegetation.git"
        "git://github.com/red-eclipse/weapons.git"
        "git://github.com/red-eclipse/wicked.git")
sha512sums=('SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP'
            'SKIP')

pkgver() {
    cd "${srcdir}/base"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
    cd "${srcdir}/base"
    git submodule init
    
    cd "${srcdir}/base/data"
    for i in \
    acerspyro actors appleflap blendbrush caustics crosshairs elyvisions \
    fonts freezurbern john jojo jwin luckystrike maps mayhem mikeplus64 misc \
    nobiax particles philipk projectiles props skyboxes sounds textures \
    torley trak ulukai unnamed vanities vegetation weapons wicked
    do
        git config submodule.${i}.url "${srcdir}/${i}"
    done
    
    cd "${srcdir}/base"
    git submodule update
}

build() {
    cd "${srcdir}/base"
    make --directory="src" client server
}

package() {
    cd "${srcdir}/base"
    make --directory="src" DESTDIR="${pkgdir}" prefix="/usr" system-install
    
    mkdir --parents "${pkgdir}/usr/share/licenses/redeclipse/"
    install --mode=555 --target-directory="${pkgdir}/usr/share/licenses/redeclipse/" "${srcdir}/base/doc/all-licenses.txt" "${srcdir}/base/doc/license.txt"
}

redeclipse.install:

post_install() {
    xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}

post_upgrade() {
    post_install $1
}

post_remove() {
    post_install $1
}

Edit 2016-02-06: Updated PKGBUILD for SDL2 dependencies.

Edit 2016-02-27: Marked as 'finished' per reply below this date.

Last edited by aexoxea (2016-02-27 08:05:05)

Offline

#2 2015-09-19 03:01:49

aexoxea
Member
From: Australia
Registered: 2012-11-17
Posts: 70
Website

Re: [FINISHED] Sample redeclipse-git files

Below is a modification to the PKGBUILD; it lists the specific commits to replicate the r1213.f7f2d38 build exactly (since that has not exhibited any crashes or errors for me so far; the only difficulty has been an apparent update to the network protocol that makes it incompatible with most of the servers).

Noted again in relation to testing an issue, and for the information of anyone else that is interested.

source=("git://github.com/red-eclipse/base.git#commit=f7f2d38ba15e353aab44ac1ab560d8a00af2464d"
        "git://github.com/red-eclipse/acerspyro.git#commit=59ab3658010bde20fbca7570bba30a7936c0d579"
        "git://github.com/red-eclipse/actors.git#commit=0968320c304561b6eba71b22dec27db1da1c091e"
        "git://github.com/red-eclipse/appleflap.git#commit=273034551217a47b6bfc59dd834b29bf63e552f8"
        "git://github.com/red-eclipse/blendbrush.git#commit=c6352af82ee2e02b489c39f61851bcc3e0af24bb"
        "git://github.com/red-eclipse/caustics.git#commit=53d185ec1120a00d44ade2e8a44632eec78fe44f"
        "git://github.com/red-eclipse/crosshairs.git#commit=c9e6b15081aaf74c5c0bc4f50aed37c980dea5be"
        "git://github.com/red-eclipse/elyvisions.git#commit=5bc92ad7f8dc8b5abc5d96dae680edc53f67e3dc"
        "git://github.com/red-eclipse/fonts.git#commit=e6f08cbac063723492d11c87df2f7760182ecdf5"
        "git://github.com/red-eclipse/freezurbern.git#commit=33d2eea9627960c055b2002449270c7c67119504"
        "git://github.com/red-eclipse/john.git#commit=1993d602207de634ff7fdaef36b7c5455bb02fe6"
        "git://github.com/red-eclipse/jojo.git#commit=0c50d95da8bda65cc253d72b2aba04ed5e2c1303"
        "git://github.com/red-eclipse/jwin.git#commit=2d9cd921a3f1374aca1071906cb5cb964446d9a4"
        "git://github.com/red-eclipse/luckystrike.git#commit=db13dc65d90fb27d10951504db1024393a96ffdc"
        "git://github.com/red-eclipse/maps.git#commit=1cbf78fd2fd2b50d275a4ed8e7bcd9449f21ab7c"
        "git://github.com/red-eclipse/mayhem.git#commit=e9f5211b710179e5f6c07fb939769b802df09a5b"
        "git://github.com/red-eclipse/mikeplus64.git#commit=416cb30d90e3fb8052013057e45d9816131ed9a3"
        "git://github.com/red-eclipse/misc.git#commit=4f35d619cd2d6c6167c7598874be084c574a0075"
        "git://github.com/red-eclipse/nobiax.git#commit=4c70fa921dabc9e4365592c76f2bfd9e536f716c"
        "git://github.com/red-eclipse/particles.git#commit=7ecdf743972114277e0530316403bae431328b3e"
        "git://github.com/red-eclipse/philipk.git#commit=84669b473b27e3f8959c5bd4b7f3b88a9beb636b"
        "git://github.com/red-eclipse/projectiles.git#commit=5db4a651bff29133e6c96ef5bb428b828c028dcf"
        "git://github.com/red-eclipse/props.git#commit=f16f16bed9cedab6b81541874e3e6ea9d4457083"
        "git://github.com/red-eclipse/skyboxes.git#commit=cf1ec2c89c2b82fe6c7d31fdf3ff4f275488fe48"
        "git://github.com/red-eclipse/sounds.git#commit=6b3d499762b8504aff09a3816cc9696ebadc9b1e"
        "git://github.com/red-eclipse/textures.git#commit=41dd7cc83c801f39949f1718b42fe7718c58e3ad"
        "git://github.com/red-eclipse/torley.git#commit=c94173f8ed015f4a379acbd2ba8cf74d1b415fdb"
        "git://github.com/red-eclipse/trak.git#commit=3cb5bbbf65e5ccf77eda1c24f24a8005fc1c32f8"
        "git://github.com/red-eclipse/ulukai.git#commit=bac84aa60aff23316ecc04645e9c4de8f3fd3401"
        "git://github.com/red-eclipse/unnamed.git#commit=2b423b65fdd10eeb5a9cb5d9c3b2caed27767a35"
        "git://github.com/red-eclipse/vanities.git#commit=403fbb8a6a3a8bf50913b764a797c78ecd19cf6e"
        "git://github.com/red-eclipse/vegetation.git#commit=e3bac6b57c8b06baf5fab54687e311be9b84d54c"
        "git://github.com/red-eclipse/weapons.git#commit=3764d726161411e3d926ab787493dcbda0137d29"
        "git://github.com/red-eclipse/wicked.git#commit=ce8568e93f59f84cbbabe1dca7d088d49332a7ba")

Offline

#3 2015-10-04 01:52:38

aexoxea
Member
From: Australia
Registered: 2012-11-17
Posts: 70
Website

Re: [FINISHED] Sample redeclipse-git files

As before, but for r1269.ed04789. Same advice that applied to r1213.f7f2d38 applies to this.

source=("git://github.com/red-eclipse/base.git#commit=ed047899c7eb87ded248e03ef3fc2d05e7720934"
        "git://github.com/red-eclipse/acerspyro.git#commit=59ab3658010bde20fbca7570bba30a7936c0d579"
        "git://github.com/red-eclipse/actors.git#commit=0968320c304561b6eba71b22dec27db1da1c091e"
        "git://github.com/red-eclipse/appleflap.git#commit=273034551217a47b6bfc59dd834b29bf63e552f8"
        "git://github.com/red-eclipse/blendbrush.git#commit=c6352af82ee2e02b489c39f61851bcc3e0af24bb"
        "git://github.com/red-eclipse/caustics.git#commit=53d185ec1120a00d44ade2e8a44632eec78fe44f"
        "git://github.com/red-eclipse/crosshairs.git#commit=c9e6b15081aaf74c5c0bc4f50aed37c980dea5be"
        "git://github.com/red-eclipse/elyvisions.git#commit=5bc92ad7f8dc8b5abc5d96dae680edc53f67e3dc"
        "git://github.com/red-eclipse/fonts.git#commit=e6f08cbac063723492d11c87df2f7760182ecdf5"
        "git://github.com/red-eclipse/freezurbern.git#commit=33d2eea9627960c055b2002449270c7c67119504"
        "git://github.com/red-eclipse/john.git#commit=1993d602207de634ff7fdaef36b7c5455bb02fe6"
        "git://github.com/red-eclipse/jojo.git#commit=0c50d95da8bda65cc253d72b2aba04ed5e2c1303"
        "git://github.com/red-eclipse/jwin.git#commit=2d9cd921a3f1374aca1071906cb5cb964446d9a4"
        "git://github.com/red-eclipse/luckystrike.git#commit=db13dc65d90fb27d10951504db1024393a96ffdc"
        "git://github.com/red-eclipse/maps.git#commit=1cbf78fd2fd2b50d275a4ed8e7bcd9449f21ab7c"
        "git://github.com/red-eclipse/mayhem.git#commit=e9f5211b710179e5f6c07fb939769b802df09a5b"
        "git://github.com/red-eclipse/mikeplus64.git#commit=416cb30d90e3fb8052013057e45d9816131ed9a3"
        "git://github.com/red-eclipse/misc.git#commit=4f35d619cd2d6c6167c7598874be084c574a0075"
        "git://github.com/red-eclipse/nobiax.git#commit=4c70fa921dabc9e4365592c76f2bfd9e536f716c"
        "git://github.com/red-eclipse/particles.git#commit=7ecdf743972114277e0530316403bae431328b3e"
        "git://github.com/red-eclipse/philipk.git#commit=84669b473b27e3f8959c5bd4b7f3b88a9beb636b"
        "git://github.com/red-eclipse/projectiles.git#commit=5db4a651bff29133e6c96ef5bb428b828c028dcf"
        "git://github.com/red-eclipse/props.git#commit=f16f16bed9cedab6b81541874e3e6ea9d4457083"
        "git://github.com/red-eclipse/skyboxes.git#commit=cf1ec2c89c2b82fe6c7d31fdf3ff4f275488fe48"
        "git://github.com/red-eclipse/sounds.git#commit=6b3d499762b8504aff09a3816cc9696ebadc9b1e"
        "git://github.com/red-eclipse/textures.git#commit=c0e01524808e21a3ae1509756009896979222b5c"
        "git://github.com/red-eclipse/torley.git#commit=c94173f8ed015f4a379acbd2ba8cf74d1b415fdb"
        "git://github.com/red-eclipse/trak.git#commit=3cb5bbbf65e5ccf77eda1c24f24a8005fc1c32f8"
        "git://github.com/red-eclipse/ulukai.git#commit=bac84aa60aff23316ecc04645e9c4de8f3fd3401"
        "git://github.com/red-eclipse/unnamed.git#commit=2b423b65fdd10eeb5a9cb5d9c3b2caed27767a35"
        "git://github.com/red-eclipse/vanities.git#commit=403fbb8a6a3a8bf50913b764a797c78ecd19cf6e"
        "git://github.com/red-eclipse/vegetation.git#commit=e3bac6b57c8b06baf5fab54687e311be9b84d54c"
        "git://github.com/red-eclipse/weapons.git#commit=3764d726161411e3d926ab787493dcbda0137d29"
        "git://github.com/red-eclipse/wicked.git#commit=ce8568e93f59f84cbbabe1dca7d088d49332a7ba")

Offline

#4 2015-11-08 05:58:20

kaptoxic
Member
Registered: 2013-07-31
Posts: 21

Re: [FINISHED] Sample redeclipse-git files

Thanks for the PKGBUILD. I think another "-svn" or "-git" package would not hurt. (There was redeclipse-svn package before).

Offline

#5 2015-12-10 10:04:11

aexoxea
Member
From: Australia
Registered: 2012-11-17
Posts: 70
Website

Re: [FINISHED] Sample redeclipse-git files

kaptoxic wrote:

Thanks for the PKGBUILD. I think another "-svn" or "-git" package would not hurt. (There was redeclipse-svn package before).

You're most welcome smile. I didn't know there was a VCS package in the old AUR, so clearly there was interest/a need for this before.

As noted in the original post, I don't intend to use this package for very long. However, if there is interest and someone else has the time and willingness to maintain it as a (new) AUR package, they are welcome to take this and do so.

Offline

#6 2015-12-10 10:18:04

aexoxea
Member
From: Australia
Registered: 2012-11-17
Posts: 70
Website

Re: [FINISHED] Sample redeclipse-git files

Since the above, I have done successful builds to r1276.3783a97 and r1278.56a2f16; the latter build I just completed today as this package is listed by the script in the C++ ABI change news item. By 'successful', I mean that the build completes, the package can be installed and redeclipse launches without issue.

(Whether or not doing a build on an up-to-date system is enough to 'deal with' the ABI change is not something I have the knowledge to comment on.)

Offline

#7 2015-12-28 16:48:55

Dreyeth
Member
Registered: 2015-10-17
Posts: 13

Re: [FINISHED] Sample redeclipse-git files

This package works great, even though the network protocol is compatible being the development
version.

I'm still having the libpng error with the redeclipse latest stable AUR package though.

It would be nice to have a redeclipse development version package up on the AUR again. =/

Thanks for sharing the PKGBUILD it works flawlessly for me.

Last edited by Dreyeth (2015-12-28 16:50:15)

Offline

#8 2016-02-06 04:15:52

aexoxea
Member
From: Australia
Registered: 2012-11-17
Posts: 70
Website

Re: [FINISHED] Sample redeclipse-git files

Dreyeth wrote:

Thanks for sharing the PKGBUILD it works flawlessly for me.

You're very welcome! Appreciate the feedback smile.

Dreyeth wrote:

This package works great, even though the network protocol is compatible being the development version.

I'm still having the libpng error with the redeclipse latest stable AUR package though.

Indeed. I don't know when upstream plans to make a new stable release, but hopefully it's soon...

Dreyeth wrote:

It would be nice to have a redeclipse development version package up on the AUR again. =/

As I've said above, anyone who wants to take this and put it on AUR is welcome to. The main reasons I haven't are:

  1. I don't have the required Git knowledge (no doubt it's straightforwards, I'm just not in a position to be spending time learning it at the moment), and

  2. I don't intend to continue maintaining this once there is a new stable release (and in fact might even stop earlier if it becomes clear a new stable release is a long way out).

Last edited by aexoxea (2016-02-06 04:21:24)

Offline

#9 2016-02-06 04:19:11

aexoxea
Member
From: Australia
Registered: 2012-11-17
Posts: 70
Website

Re: [FINISHED] Sample redeclipse-git files

Another successful build (and install and brief test run) today with r1459.c3af9a8. It appears RE is now using SDL2; the dependencies in the PKGBUILD sample in the original post have been updated accordingly.

Offline

#10 2016-02-27 08:21:41

aexoxea
Member
From: Australia
Registered: 2012-11-17
Posts: 70
Website

Re: [FINISHED] Sample redeclipse-git files

I've been playing redeclipse less and less in recent months, in part due to the netcode incompatibility and in part due to other priorities and interests. As a result, earlier today I uninstalled redeclipse from my system.

On that basis, I have marked this thread as 'finished'; I didn't want to use 'solved' since the broader situation remains, but I don't intend to be updating this thread any further given that I am no longer using the software. If there is a more appropriate phrase to use in the thread title, please let me know.

Maintaining the PKGBUILD has been straightforward so far; the only times I've needed to change it were due to:

  • Changes in the required git repositories (identifiable when the .gitmodules file in the red-eclipse/base repository is updated).

  • Changes in dependencies (identifiable from build failures).

Thank you to everyone that showed an interest here, and for those continuing on with redeclipse, I wish you the best. Feel free to copy this thread and/or make an AUR package if you wish.

Offline

Board footer

Powered by FluxBB