blob: 40db13e0fca0ce9625d4f48d54d6d0e2f0be74a2 (
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
|
# Maintainer: kleintux <reg-archlinux AT klein DOT tuxli DOT ch>
_pkgname=grume
pkgname="${_pkgname}-git"
pkgver=r2836.e87893c8
pkgrel=1
pkgdesc='A 3D Action RPG by Paul Wortmann.'
arch=('x86_64')
url="https://github.com/Paul-Wortmann/grume"
license=('GPL2')
depends=("assimp" "glfw" "glm" "openal" "mesa" "physfs" "libvorbis")
makedepends=("git" "cmake")
source=("git+https://github.com/Paul-Wortmann/${_pkgname}.git")
sha256sums=('SKIP')
conflicts=(${_pkgname})
pkgver() {
cd "${_pkgname}"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "${_pkgname}"
cmake .
make
}
package() {
cd "${_pkgname}"
mkdir -p ${pkgdir}/usr/bin/
install -Dm755 "${_pkgname}" "${pkgdir}/usr/share/games/${_pkgname}/${_pkgname}"
cp -r "data" "${pkgdir}/usr/share/games/${_pkgname}/"
find "${pkgdir}/usr/share/games/${_pkgname}/data/" -type f -exec chmod 644 {} \;
chmod 777 "${pkgdir}/usr/share/games/${_pkgname}/data/config/"
chmod 666 "${pkgdir}/usr/share/games/${_pkgname}/data/config/"*
touch ${pkgdir}/usr/share/games/${_pkgname}/data/debug.log
chmod 666 "${pkgdir}/usr/share/games/${_pkgname}/data/debug.log"
echo -e "#!/bin/sh\ncd /usr/share/games/${_pkgname}\n./${_pkgname} \$@" > ${pkgdir}/usr/bin/${_pkgname}
chmod +x ${pkgdir}/usr/bin/${_pkgname}
}
|