summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 026202ee78924422b0fe360d44719197e73386ca (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
# Maintainer: Abheek Dhawan <abheekd at protonmail dot com>

pkgname="wwise-audio-tools-git"
pkgver=0.8.1.r0.gbb94fda
pkgrel=1
pkgdesc="Tools for working with Wwise file types"
arch=("x86_64")
url="https://github.com/WolvenKit/wwise-audio-tools"
license=("MIT")
makedepends=("cmake" "ninja" "git")
source=("git+https://github.com/WolvenKit/wwise-audio-tools")
sha512sums=("SKIP")

pkgver() {
  cd ${srcdir}/wwise-audio-tools
  git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
	cd "${srcdir}/wwise-audio-tools"
	git submodule update --init
}

build() {
	cmake -G "Ninja" -B build -S "${srcdir}/wwise-audio-tools" \
		-DCMAKE_INSTALL_PREFIX="/usr" \
		-Wno-dev
	cmake --build build
}

package() {
	DESTDIR="$pkgdir" PREFIX="usr" cmake --install build
}