Package Details: widelands-bzr r8507-1

Git Clone URL: https://aur.archlinux.org/widelands-bzr.git (read-only)
Package Base: widelands-bzr
Description: A realtime strategy game with emphasis on economy and transport - development version
Upstream URL: http://wl.widelands.org
Licenses: GPL2
Conflicts: widelands, widelands-data
Provides: widelands
Submitter: matthiaskrgr
Maintainer: gamag
Last Packager: gamag
Votes: 6
Popularity: 0.233341
First Submitted: 2012-04-21 17:53
Last Updated: 2017-11-27 22:33

Required by (3)

Sources (1)

Latest Comments

1 2 3 4 Next › Last »

dreieck commented on 2018-09-04 07:47

Those development builds are advancements of the latest release. I suggest that $pkgver reflects this, like pkgver=19+r8807 (also epoch should be incremented in that case because of change of versioning scheme; i.e. epoch=1). And provides=('widelands') can be enhanced to provides=("widelands=${pkgver}").

Here is a pkgver()-function that fulfills this. Also, I have updated the bzr revno-call to the local source tree, instead of querying online:

pkgver() {
    _get_build_ver() {
        grep -E -e '^[[:space:]]*#define[[:space:]]+VER_BUILD[[:space:]]+' "${srcdir}/${pkgname}/utils/win32/mingw/Widelands_win.h" | sed -E -e 's|^.*VER_BUILD[[:space:]]*||' | sed -E -e 's|[[:space:]]+.*$||'
    }

    _get_svn_rev() {
        cd "${srcdir}/${pkgname}"
        printf "%s" "$(bzr revno -q)"
    }

    _ver="$(_get_build_ver)"
    _rev="$(_get_svn_rev)"

    if [ -z ${_ver} ]; then
        error "Failed to determine build version. Aborting."
        return 11
    fi
    if [ -z ${_rev} ]; then
        error "Failed to determine bazaar revision. Aborting."
        return 12
    fi

    printf "%s" "${_ver}+r${_rev}"
}

A PKGBUILD-patch incorporating all those changes (and some tuned build options): http://ix.io/1m1N, and the modified PKGBUILD (patch applied): http://ix.io/1m1O. (WARNING: Uses ccache. If you want to use that PKGBUILD for the AUR-package, hand-pick the changes before and e.g. do not include ccache.)

dreieck commented on 2018-09-04 07:27

Building this package requires internet acces not only during download (makepkg -o), but during each build (even makepkg -e, in build(), during the call to cmake), to determine version/ SVN revision. I suggest adding a pinned comment about this.

dreieck commented on 2018-09-02 21:42

You should adding the .. as the last argument to cmake, not as the first one, as it will expect the directory argument as the last one.

gamag commented on 2017-11-27 22:42

Thanks, should be fixed now.

Tmk commented on 2017-11-27 19:33

Hi Gamag! The PKGBUILD needs an adjustment, for now otherwise it crashes. You can get more info at https://wl.widelands.org/forum/topic/4153/ Cheers!

weedfreak commented on 2017-09-06 09:26

In the last week I start getting this error -

-> Updating bzr checkout
bzr: ERROR: Invalid http response for http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/.bzr/branch-format: Unable to handle http code 506: Failure To Connect To Web Server
==> ERROR: A failure occurred in prepare().
Aborting...

gamag commented on 2017-08-02 20:33

Good point. I've added the option.

kaputtnik commented on 2017-08-02 17:38

I think the website related executables aren't needed for a normal installation. So some compile time could be saved if the cmake option:

-DOPTION_BUILD_WEBSITE_TOOLS=Off

is added to the PKGBUILD :-)

See also the widelands compile script line 30 and line 119 for comparison : http://bazaar.launchpad.net/~widelands-dev/widelands/trunk/view/head:/compile.sh

weedfreak commented on 2017-02-04 12:31

Looks like installing via yaourt causes the problem, runs ok when installed without yaourt.

gamag commented on 2017-01-30 15:38

Strange - do you have more details? Try building without yaourt, so it's easier to debug and faster to retry (don't delete the source).