diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 45 |
1 files changed, 25 insertions, 20 deletions
@@ -1,24 +1,28 @@ _pkgname=ericw-tools pkgname=${_pkgname}-git -pkgver=0.18.2.rc1.r356.g6e96ae7c +pkgver=0.18.2.rc1.r2115.g9f7ba657 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=('embree' 'groff') -makedepends=('cmake' 'git') +depends=('embree3' 'groff' 'tbb') +makedepends=('cmake' 'git' 'python-sphinx' 'python-sphinx-furo') provides=(${_pkgname}) conflicts=(${_pkgname}) -source=("${_pkgname}::git+${_giturl}.git" +source=("${_pkgname}::git+${_giturl}.git#branch=brushbsp" "fmt::git+https://github.com/fmtlib/fmt.git" - "googletest::git+https://github.com/google/googletest.git" "json::git+https://github.com/ArthurSonzogni/nlohmann_json_cmake_fetchcontent.git" + "nanobench::git+https://github.com/martinus/nanobench" + "pareto::git+https://github.com/alandefreitas/pareto.git" + "doctest::git+https://github.com/doctest/doctest" ) sha256sums=('SKIP' 'SKIP' 'SKIP' + 'SKIP' + 'SKIP' 'SKIP') pkgver() { @@ -27,30 +31,31 @@ pkgver() { } prepare() { - cd "${_pkgname}/3rdparty/" - rm -r "fmt" - ln -s "${srcdir}/fmt" - rm -r "googletest" - ln -s "${srcdir}/googletest" - rm -r "json" - ln -s "${srcdir}/json" + cd $_pkgname + git config submodule.lib/fmt.url ../fmt + git config submodule.3rdparty/json.url ../json + git config submodule.3rdparty/nanobench.url ../nanobench + git config submodule.3rdparty/pareto.url ../pareto + git config submodule.3rdparty/doctest.url ../doctest + git submodule update } build() { - cd ${_pkgname} - rm -rf build - mkdir build - cd build - cmake .. - make + cmake -S ${_pkgname} -B build \ + -DCMAKE_BUILD_TYPE=None \ + -DCMAKE_INSTALL_PREFIX=/usr + cmake --build build } package() { _files=(qbsp vis light bspinfo bsputil) for _i in "${_files[@]}" do - install -Dm755 ${_pkgname}/build/${_i}/${_i} "$pkgdir"/usr/bin/${_i} - install -Dm644 ${_pkgname}/build/man/${_i}.html -t "${pkgdir}"/usr/share/doc/${_pkgname} + 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}/{} \; } |