Package Details: ericw-tools-git 2.0.0.alpha9.r6.gea1e4696-1

Git Clone URL: https://aur.archlinux.org/ericw-tools-git.git (read-only, click to copy)
Package Base: ericw-tools-git
Description: Quake/Hexen 2 Map compiling tools
Upstream URL: https://ericwa.github.io/ericw-tools
Licenses: GPL3
Conflicts: ericw-tools
Provides: ericw-tools
Submitter: xDShot
Maintainer: xDShot
Last Packager: xDShot
Votes: 1
Popularity: 0.78
First Submitted: 2021-08-30 11:54 (UTC)
Last Updated: 2025-02-17 11:31 (UTC)

Latest Comments

alexmurkoff commented on 2025-02-17 09:22 (UTC) (edited on 2025-02-17 09:51 (UTC) by alexmurkoff)

Getting fatal: invalid reference: origin/brushbsp error. Any ideas?

EDIT: modified pkgbuild to simply pull the main branch and init submodules via git instead of PKGBUILD itself

_pkgname=ericw-tools
pkgname=${_pkgname}-git
pkgver=2.0.0.alpha8.r22.g6c9b681b
pkgrel=1
pkgdesc="Quake/Hexen 2 Map compiling tools"
arch=('x86_64')
url="https://ericwa.github.io/ericw-tools"
_giturl="https://github.com/ericwa/ericw-tools"
license=('GPL3')
depends=('embree3' 'groff' 'tbb')
makedepends=('cmake' 'git' 'python-sphinx' 'python-sphinx-furo' 'python-sphinx-autobuild')
provides=(${_pkgname})
conflicts=(${_pkgname})
source=("${_pkgname}::git+${_giturl}.git")
sha256sums=('SKIP')

pkgver() {
    cd ${_pkgname}
    git describe --long --tags | sed 's/v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
    cd $_pkgname
    git submodule update --init --recursive
}

build() {
    cmake -S ${_pkgname} -B build \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_PREFIX=/usr
    cmake --build build
}

package() {
    _files=(qbsp vis light bspinfo bsputil maputil lightpreview)
    for _i in "${_files[@]}"
    do
      install -Dm755 build/${_i}/${_i} "$pkgdir"/usr/bin/${_i}
    done

    cd build/docs/docs/sphinx/
    rm -r .doctrees/ .buildinfo
    find . -type f -exec install -Dm644 "{}" "${pkgdir}"/usr/share/doc/${_pkgname}/{} \;
}

seems to be working without issues

auhsan commented on 2024-08-28 18:37 (UTC)

It fails to prepare when cloning the submodules unless I include this configuration on git:

git config --global protocol.file.allow always

paru output:

==> Starting prepare()...
Cloning into '/home/auhsan/.cache/paru/clone/ericw-tools-git/src/ericw-tools/3rdparty/fmt'...
fatal: transport 'file' not allowed
fatal: clone of '../fmt' into submodule path '/home/auhsan/.cache/paru/clone/ericw-tools-git/src/ericw-tools/3rdparty/fmt' failed
Failed to clone '3rdparty/fmt'. Retry scheduled
Cloning into '/home/auhsan/.cache/paru/clone/ericw-tools-git/src/ericw-tools/3rdparty/json'...
fatal: transport 'file' not allowed
fatal: clone of '../json' into submodule path '/home/auhsan/.cache/paru/clone/ericw-tools-git/src/ericw-tools/3rdparty/json' failed
Failed to clone '3rdparty/json'. Retry scheduled
Cloning into '/home/auhsan/.cache/paru/clone/ericw-tools-git/src/ericw-tools/3rdparty/nanobench'...
fatal: transport 'file' not allowed
fatal: clone of '../nanobench' into submodule path '/home/auhsan/.cache/paru/clone/ericw-tools-git/src/ericw-tools/3rdparty/nanobench' failed
Failed to clone '3rdparty/nanobench'. Retry scheduled
Cloning into '/home/auhsan/.cache/paru/clone/ericw-tools-git/src/ericw-tools/3rdparty/pareto'...
fatal: transport 'file' not allowed
fatal: clone of '../pareto' into submodule path '/home/auhsan/.cache/paru/clone/ericw-tools-git/src/ericw-tools/3rdparty/pareto' failed
Failed to clone '3rdparty/pareto'. Retry scheduled
Cloning into '/home/auhsan/.cache/paru/clone/ericw-tools-git/src/ericw-tools/3rdparty/fmt'...
fatal: transport 'file' not allowed
fatal: clone of '../fmt' into submodule path '/home/auhsan/.cache/paru/clone/ericw-tools-git/src/ericw-tools/3rdparty/fmt' failed
Failed to clone '3rdparty/fmt' a second time, aborting
==> ERROR: A failure occurred in prepare().

spectr commented on 2024-06-17 12:00 (UTC) (edited on 2024-06-17 12:09 (UTC) by spectr)

Hi, the recent preview tool is missing, please add lightpreview to package()

_files=(qbsp vis light bspinfo bsputil lightpreview)

MarsSeed commented on 2023-08-03 22:43 (UTC)

Also it would be good to follow the git submodule source preparation.

Btw just checked: upstream no longer uses googletest, hence the failure I encountered.

MarsSeed commented on 2023-08-03 22:42 (UTC)

Fails to prepare sources:

==> Extracting sources...
  -> Creating working copy of ericw-tools git repo...
Cloning into 'ericw-tools'...
done.
  -> Creating working copy of fmt git repo...
Cloning into 'fmt'...
done.
  -> Creating working copy of googletest git repo...
Cloning into 'googletest'...
done.
  -> Creating working copy of json git repo...
Cloning into 'json'...
done.
==> Starting prepare()...
rm: cannot remove 'googletest': No such file or directory
==> ERROR: A failure occurred in prepare().
    Aborting...

xDShot commented on 2021-08-30 21:33 (UTC)

Fixed all pointed issues

FabioLolix commented on 2021-08-30 14:53 (UTC)

Hello,