blob: 5e303a2c481699973d557ea2a6837c0418bbe53c (
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: Vaporeon <vaporeon@vaporeon.io>
pkgname=invader-git
pkgver=0.53.7.r4077.29241910
pkgrel=1
pkgdesc="An open source toolkit for creating maps and assets for Halo: Combat Evolved (git build)"
depends=('libtiff' 'libarchive' 'libsquish' 'flac' 'freetype2' 'libsamplerate'
'libogg' 'libvorbis' 'qt6-base' 'sdl2' 'zlib' 'gcc-libs' 'glibc')
makedepends=('cmake' 'corrosion' 'git' 'ninja' 'python' 'rust')
arch=('x86_64')
url="https://invader.opencarnage.net"
license=('GPL-3.0-only')
source=("git+https://github.com/SnowyMouse/${pkgname%-git}.git"
"git+https://github.com/SnowyMouse/riat.git")
sha256sums=('SKIP'
'SKIP')
provides=('invader')
conflicts=('invader')
pkgver() {
cd "${srcdir}/${pkgname%-git}"
printf "%s.r%s.%s" "$(git describe --abbrev=0 --tags)" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
cd invader
git submodule init
git config submodule.riat.url "${srcdir}/riat"
git submodule update
}
build() {
cmake -S "${pkgname%-git}" \
-G Ninja \
-B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
cmake --build build --config Release
}
package() {
DESTDIR="${pkgdir}" cmake --install build --config Release
}
|