summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 59f14c3830b962bb280881495a482c87221ac863 (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
# Maintainer: Roland Plüss <roland@dragondreams.ch>
pkgname=('democap')
pkgbase=democap
pkgver=1.10
pkgrel=1
pkgdesc="Drag[en]gine motion capture using VR hardware"
arch=('any')
url="https://dragondreams.ch/index.php/democap"
license=('GPL-3.0-only')
depends=('dragengine'
         'hicolor-icon-theme'
         'xdg-utils')
makedepends=('git'
             'scons')
_tag="v${pkgver}"
_delgaVersion="${pkgver}"
source=("${pkgname}-${pkgver}::git+https://github.com/LordOfDragons/democap.git#tag=$_tag"
        "https://github.com/LordOfDragons/democap/releases/download/v$_delgaVersion/DEMoCap-$_delgaVersion.delga")
sha256sums=('ea3f847fd675d6046b8d8ff1d7f3c9e648eee271bd28bb9c434f70fa32cbf5b4'
            '44f7068d0c47fd405414d30d8bc6751211c4f271a97505c285b4d6b2ca537e88')
# Roland Plüss (roland@dragondreams.ch)
# DragonDreams Build Bot (buildbot@dragondreams.ch)
validpgpkeys=('E0ECD22F5F70777588450034446C9C667CFC1DF3'
              'A58A91BCA5C3B2C34CD57ACB8040F88D27F1D0AA')
noextract=("DEMoCap-$_delgaVersion.delga")

build() {
	cd "democap-$pkgver"
	
	# copy pre-build DELGA file. we could also use the IGDE to build the DELGA
	# file but this pops up a UI (bad for build bots) or requires using the CI
	# version of the IGDE (good for build bots), which best uses the deigde-ci
	# docker image (https://hub.docker.com/r/lordofdragons/deigde-ci). but
	# getting this working is more complicate than simply downloading the DELGA
	# file and copying it to the build directory
	mkdir -p unix/src/build
	cp "$srcdir"/DEMoCap-$_delgaVersion.delga unix/src/build/DEMoCap.delga
}

package() {
	cd "democap-$pkgver"/unix
	scons version="$pkgver" --install-sandbox="$(realpath "$pkgdir")"
}