blob: 1bbdcf4ee6b914141e5f6392cb1ba1000df98a15 (
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
45
46
47
48
49
50
51
52
|
# Maintainer: Felix Golatofski <contact@xdfr.de>
# Contributor: cyrant <cyrant at tuta dot io>
pkgname=voxelquest
pkgver=0.1
pkgrel=2
pkgdesc='Both an open source voxel game engine and a role playing game.'
url='https://www.voxelquest.com/'
arch=('x86_64')
license=('MIT')
conflicts=('voxelquest-git')
depends=('freeglut' 'sfml')
makedepends=('cmake' 'unzip')
_lzz='lzz_2_8_2_linux.zip'
source=(
"${pkgname}::git+https://github.com/gavanw/vqisosmall.git#tag=${pkgver}"
"${pkgname}-resources.zip::https://github.com/gavanw/vqisosmall/releases/download/${pkgver}/resources.zip"
"${_lzz}::https://github.com/driedfruit/lzz/releases/download/v2.8.2/${_lzz}"
"${pkgname}.desktop"
"${pkgname}.sh"
)
sha512sums=('SKIP'
'468a5963fd6f028da19a5006eab4f2673941af6f92497af313e952cb6acef14242b23781be2b66114dffc692b8fb678182d6286ace746194eae94adc789116dc'
'5d88dd0e22a7488990c17a7457f5389d0007154480531190f4fe58a63abc6e71c2dce1e163db43d141b4c5fac1f3a43b20872fb9caa0d8f9f29b31079e70e2e6'
'5e7bd86831ccbd006d00ad02da790425067a5b29430a3cb961c42bc4de0881af582217d41ddcb51cb58223d16c5b8752b2db42d8b75c9360ec151eff0cb6ccfd'
'04280dcddd238c35bd81c1fc74a199bc62e5eef26be0ed188dbb7fec2b2efac63b474d83413ec432afadc3851dad13b48fa2fde89bc30149d353f0cc9f85ef91')
noextract=(
"${pkgname}-resources.zip"
"${_lzz}"
)
prepare() {
unzip -o "${_lzz}" -d "${pkgname}"
}
build() {
mkdir -p "${pkgname}-build"
cd "${pkgname}-build"
cmake "../${pkgname}" &&
make
}
package() {
install -Dm755 "${pkgname}-build/VoxelQuest" "${pkgdir}/opt/${pkgname}/bin/${pkgname}"
install -dm755 "${pkgdir}/opt/${pkgname}/src/glsl"
cp -dpr --no-preserve=ownership "${pkgname}/cdat" "${pkgdir}/opt/${pkgname}"
cp -dpr --no-preserve=ownership "${pkgname}/src/glsl" "${pkgdir}/opt/${pkgname}/src"
unzip -o "${pkgname}-resources.zip" data/* -d "${pkgdir}/opt/${pkgname}"
install -Dm644 "${pkgname}/LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm755 "${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
install -Dm644 "${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
}
|