Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: TrenchBroom-2021.1
@ 2021-10-05 20:41 kedodrill
  2021-10-29 17:53 ` [PR PATCH] [Updated] [WIP] " kedodrill
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: kedodrill @ 2021-10-05 20:41 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 2319 bytes --]

There is a new pull request by kedodrill against master on the void-packages repository

https://github.com/kedodrill/void-packages trenchbroom
https://github.com/void-linux/void-packages/pull/33354

New package: TrenchBroom-2021.1
<!-- Mark items with [x] where applicable -->

#### General
- [x] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)

#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [x] I generally don't use the affected packages but briefly tested this PR

* I'm learning this software and have successfully built and compiled a map and played it in vkQuake. I've also successfully built a map with Qodot. I'm going to continue using / learning this.

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->
- [x] I built this PR locally for my native architecture, x86_64
- [x] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [x] x86_64-musl - failed
  - [x] armv7l - failed
  - [x] i686 - success
  - [x] i686 (crossbuild) - failed, `CMake Error: AUTOMOC for target common: Test run of "moc" executable "/usr/i686-pc-linux-gnu/usr/lib/qt5/bin/moc" failed.`

https://github.com/TrenchBroom/TrenchBroom

See readme, TB will crash on wayland if `QT_QPA_PLATFORM` is set to `wayland`.

A patch file from https://github.com/void-linux/void-packages/pull/33354.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-trenchbroom-33354.patch --]
[-- Type: text/x-diff, Size: 3235 bytes --]

From df9108d73b6d4acac9ebcba6aed73dfa9dd5efd0 Mon Sep 17 00:00:00 2001
From: Kenneth Dodrill <kmdodrill@protonmail.com>
Date: Tue, 5 Oct 2021 15:32:16 -0500
Subject: [PATCH] New package: TrenchBroom-2021.1

---
 srcpkgs/TrenchBroom/files/README.voidlinux |  8 ++++
 srcpkgs/TrenchBroom/template               | 52 ++++++++++++++++++++++
 2 files changed, 60 insertions(+)
 create mode 100644 srcpkgs/TrenchBroom/files/README.voidlinux
 create mode 100644 srcpkgs/TrenchBroom/template

diff --git a/srcpkgs/TrenchBroom/files/README.voidlinux b/srcpkgs/TrenchBroom/files/README.voidlinux
new file mode 100644
index 000000000000..5f64c5654337
--- /dev/null
+++ b/srcpkgs/TrenchBroom/files/README.voidlinux
@@ -0,0 +1,8 @@
+TrenchBroom currently does not support wayland.
+If you normally run QT applications using
+
+	QT_QPA_PLATFORM=wayland
+
+you will need to run TrenchBroom like so:
+
+	QT_QPA_PLATFORM=xcb trenchbroom
diff --git a/srcpkgs/TrenchBroom/template b/srcpkgs/TrenchBroom/template
new file mode 100644
index 000000000000..e52f9ca37fc3
--- /dev/null
+++ b/srcpkgs/TrenchBroom/template
@@ -0,0 +1,52 @@
+# Template file for 'TrenchBroom'
+pkgname=TrenchBroom
+version=2021.1
+revision=1
+wrksrc="${pkgname}-${version}"
+build_style=cmake
+hostmakedepends="git pandoc"
+makedepends="qt5-devel qt5-svg-devel glew-devel MesaLib-devel libfreeglut-devel
+ glm libXxf86vm-devel freeimage-devel freetype-devel libxcb-devel"
+short_desc="Cross-Platform Level Editor"
+maintainer="Kenneth Dodrill <kmdodrill@protonmail.com>"
+license="GPL-3.0-or-later"
+homepage="https://trenchbroom.github.io/"
+_vecmath_rev=15a858e9fff8030e895d2974244053ada67d30bb
+_Catch2_rev=7f21cc6c5599f59835f769debf13b4c3e6148a28
+_BinaryLibs_rev=bacae0b1b323bf99ea54055744e294d0fa085e53
+_fmt_rev=cc09f1a6798c085c325569ef466bcdcffdc266d4
+distfiles="https://github.com/TrenchBroom/TrenchBroom/archive/refs/tags/v${version}.tar.gz
+ https://github.com/TrenchBroom/vecmath/archive/${_vecmath_rev}.tar.gz
+ https://github.com/catchorg/Catch2/archive/${_Catch2_rev}.tar.gz
+ https://github.com/TrenchBroom/BinaryLibs/archive/${_BinaryLibs_rev}.tar.gz
+ https://github.com/fmtlib/fmt/archive/${_fmt_rev}.tar.gz"
+checksum="6b7fe4b906ecdb67ff52a70aeafaaf39c1fb6f64891f863483ee3fa5316ea7e6
+ f4b7475b8c1ad3b9bde90ad7b2629b3c893ee193f6dfaab1f156d3f290f0e419
+ 3c5a0147726e891d740a3f9de805e1d2f4fae57fbec4fbfb4d26fd9560e2604d
+ 20e5f96c7b8d4295c81b0641f2c2b0a66801d1c09ac708177cf74ab30a94fceb
+ f0da66d8f5949d78a6972f7f884310797b2dc422835a12fd3634697ec8c25acf"
+
+# Allows headless builds, otherwise receive an xcb error.
+export QT_QPA_PLATFORM=offscreen
+
+pre_configure() {
+	rmdir lib/vecmath
+	rmdir lib/Catch2
+	rmdir lib/BinaryLibs
+	rmdir lib/fmt
+
+	mv ../vecmath-${_vecmath_rev} lib/vecmath
+	mv ../Catch2-${_Catch2_rev} lib/Catch2
+	mv ../BinaryLibs-${_BinaryLibs_rev} lib/BinaryLibs
+	mv ../fmt-${_fmt_rev} lib/fmt
+}
+
+post_install() {
+	vinstall app/resources/linux/trenchbroom.desktop 644 usr/share/applications
+
+	for size in 8 16 22 24 32 36 42 48 64 72 96 128 192 256 512; do
+		vinstall app/resources/linux/icons/icon_${size}.png 644 usr/share/icons/hicolor/${size}x${size}/apps/ trenchbroom.png
+	done
+
+	vdoc "${FILESDIR}/README.voidlinux"
+}

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-05-13 19:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05 20:41 [PR PATCH] New package: TrenchBroom-2021.1 kedodrill
2021-10-29 17:53 ` [PR PATCH] [Updated] [WIP] " kedodrill
2021-10-29 18:00 ` kedodrill
2021-10-29 22:30 ` kedodrill
2022-05-13 19:47 ` kedodrill
2022-05-13 19:47 ` [PR PATCH] [Closed]: " kedodrill

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).