blob: c7cdebd92e965079635b79ba00de92dad4b643cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
# Maintainer: Hauke Rehfeld <aur@haukerehfeld.de>
pkgname=trenchbroom-git
pkgver=v2020.1.RC2.r0.g897489bde
pkgrel=1
pkgdesc="TrenchBroom is a modern cross-platform level editor for Quake-engine based games."
arch=("i686" "x86_64")
url="http://kristianduske.com/trenchbroom"
license=("GPLv3")
makedepends=("git" "pandoc" "qt5-base" "cmake" "ninja")
depends=("freeimage" "freetype2" "mesa" "libgl" "freeglut" "libxxf86vm" "glew" "glm")
conflicts=("trenchbroom")
provides=("trenchbroom")
source=("trenchbroom::git+https://github.com/kduske/TrenchBroom.git#branch=master"
trenchbroom.desktop)
sha1sums=('SKIP'
'34e2e1168624a61358c01cecfad170d435952740')
pkgver() {
cd "trenchbroom"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd trenchbroom
git submodule update --init --recursive
}
build() {
mkdir trenchbroom/build
cd trenchbroom/build
cmake .. -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_BUILD_TYPE=Release
cmake --build . --target TrenchBroom
}
package() {
cd trenchbroom/build
make DESTDIR=${pkgdir} install
install -Dm644 ../../../trenchbroom.desktop "${pkgdir}/usr/share/applications/trenchbroom.desktop"
install -Dm644 "${srcdir}/trenchbroom/app/resources/linux/icons/icon_256.png" "${pkgdir}/usr/share/pixmaps/trenchbroom.png"
}
|