blob: 20f39bd523c2c5d93cb4c06e18df59c9abf787b3 (
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
53
54
55
|
# Maintainer: envolution
# Contributor: lottieratworld <lottieratworld at proton mail dot com>
# Contributor: Kyle Keen <keenerd@gmail.com>
pkgname=hyperrogue-git
_pkgname=hyperrogue
pkgver=13.0w+r11136+g4aeaa2e2d
pkgrel=2
pkgdesc="You are a lone outsider in a strange, non-Euclidean hyperbolic world"
arch=('i686' 'x86_64')
url="http://www.roguetemple.com/z/hyper.php"
license=('GPL-2.0-or-later')
options=(!strip !debug)
provides=(hyperrogue)
conflicts=(hyperrogue)
depends=('sdl_gfx' 'sdl_ttf' 'sdl_mixer' 'mesa' 'ttf-dejavu')
makedepends=('glu' 'glew')
source=(
"git+https://github.com/zenorogue/hyperrogue.git"
"hyperrogue.sh"
)
sha256sums=('SKIP'
'd8b6b3d6d8bfe7d7ce97e2fd2a35d148505890dc9c6ea972a7ecb2453245b032')
build() {
cd "$_pkgname"
export HYPERROGUE_USE_GLEW=1
export HYPERROGUE_USE_PNG=1
make
}
pkgver() {
cd ${_pkgname}
_version=$(git tag --sort=-v:refname --list | head -n1)
_commits=$(git rev-list --count HEAD)
_short_commit_hash=$(git rev-parse --short=9 HEAD)
echo "${_version#'v'}+r${_commits}+g${_short_commit_hash}"
}
package() {
install -Dm755 hyperrogue.sh "${pkgdir}/usr/bin/hyperrogue"
cd "${_pkgname}"
install -d "${pkgdir}"/usr/bin "${pkgdir}"/usr/share/hyperrogue/{sounds,music,honeycombs} "${pkgdir}"/usr/share/applications
install -Dm755 ./hyperrogue "${pkgdir}/usr/share/${_pkgname}/app"
install -Dm644 ./*ttf "${pkgdir}/usr/share/${_pkgname}"
install -Dm644 ./honeycombs/* "${pkgdir}/usr/share/${_pkgname}/honeycombs"
install -Dm644 ./sounds/* "${pkgdir}/usr/share/${_pkgname}/sounds"
install -Dm644 ./music/* "${pkgdir}/usr/share/${_pkgname}/music"
install -Dm644 ./{hyperrogue-music.txt,*.dat} "${pkgdir}/usr/share/${_pkgname}"
install -Dm755 ./contrib/hyperrogue.desktop "${pkgdir}/usr/share/applications/${_pkgname}.desktop"
install -Dm755 ./hyperroid/app/src/main/res/drawable-hdpi/icon.png "${pkgdir}/usr/share/pixmaps/hyperrogue.png"
}
# vim: ts=2 sw=2 et:
|