summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRetro_Gamer2024-03-01 22:02:16 -0500
committerRetro_Gamer2024-03-01 22:02:16 -0500
commit8f018d604a1ead9d2ff02e9aa231dea695add639 (patch)
treeceb6dacb35072b2243409844aa0c488bec795e85 /PKGBUILD
parent4cb51d9a4a59a4d61b66b94ad08cf2ff499ec40e (diff)
downloadaur-8f018d604a1ead9d2ff02e9aa231dea695add639.tar.gz
Fix TrenchBroom 2023.1 / safe symlink libtinyxml2 10 to 9.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD32
1 files changed, 15 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8e13c7849c4b..8fb8c799dabb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,27 +1,30 @@
-# Maintainer: Quentin Aniere
-# Previous Maintainer: Hilton Medeiros <medeiros.hilton@gmail.com>
+# Maintainer: Retro Gamer <https://github.com/eGax>
+# Previous Maintainers: Hilton Medeiros & Quentin Aniere
+
_pkgname=TrenchBroom
-pkgname=trenchbroom-bin
-pkgver=2024.1
-rc=RC2
-_pkgver=Linux-ubuntu-22.04-v$pkgver-$rc-Release.$CARCH
-pkgrel=1
-pkgdesc="A free (GPLv3+), cross platform level editor for Quake-engine based games"
+pkgname=trenchbroom
+pkgver=2023.1
+_pkgver=Linux-ubuntu-22.04-v$pkgver-Release.$CARCH
+pkgrel=2
+pkgdesc="TrenchBroom is a free (GPLv3+), cross platform level editor for Quake-engine based games. It supports Quake, Quake 2, and Hexen 2.
+ x86_64 Ubuntu Release version of TrenchBroom 2023.1. For a current commit build use trenchbroom-git."
arch=("x86_64")
url="https://trenchbroom.github.io/"
license=('GPL3')
provides=('trenchbroom')
conflicts=('trenchbroom' 'trenchbroom-git')
-depends=('freeimage' 'glew' 'tinyxml2' 'qt5-svg' 'hicolor-icon-theme')
-source=("https://github.com/TrenchBroom/TrenchBroom/releases/download/v$pkgver-$rc/$_pkgname-$_pkgver.deb")
+depends=("freeimage" "freetype2" "mesa" "libgl" "freeglut" "libxxf86vm" "glew" "glm" "tinyxml2")
+source=("https://github.com/TrenchBroom/TrenchBroom/releases/download/v$pkgver/$_pkgname-$_pkgver.deb")
noextract=("$_pkgname-$_pkgver.deb")
-sha256sums=('221409157467b9388fd23a18ec7932850cc0a5849cfb0cdd7c3400404656963c')
+sha256sums=('b7e2e8b84109799367e1e044ecd32ff9b002b04c96137bfa358e9a650bdda79e')
prepare() {
mkdir -p "$pkgname-$pkgver"
mkdir -p "$pkgname-$pkgver-files"
bsdtar xvf "$srcdir/$_pkgname-$_pkgver.deb" -C "$pkgname-$pkgver"
bsdtar xvf "$pkgname-$pkgver/data.tar.gz" -C "$pkgname-$pkgver-files"
+ # Ubuntu TB2023.1 requires libtinyxml2.so.9 / Arch is on 10, look for a valid symlink of 9, if none, create one from current libtinyxml2.10.0.0
+ if [ ! -e "/usr/lib/libtinyxml2.so.9" ]; then sudo ln -s "/usr/lib/libtinyxml2.so.10.0.0" "/usr/lib/libtinyxml2.so.9"; else echo "complete"; fi
}
package() {
@@ -30,9 +33,4 @@ package() {
install -Dm644 "usr/share/$_pkgname/icons/icon_512.png" "$pkgdir/usr/share/icons/hicolor/512x512/apps/trenchbroom.png"
cp -rf "." "$pkgdir"
rm -f "$pkgdir/usr/share/$_pkgname/trenchbroom.desktop"
-
- # Workaround for libtinyxml version
- # See : https://aur.archlinux.org/packages/trenchbroom-bin#comment-958182
- mkdir -p $pkgdir/usr/lib/
- ln -s /usr/lib/libtinyxml2.so.10.0.0 $pkgdir/usr/lib/libtinyxml2.so.9
-}
+} \ No newline at end of file