blob: aa4bcb6e4dc3cc18efd10579436939dc52ed3cc6 (
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
56
57
58
59
60
61
62
63
64
65
|
# Maintainer: Jakob Gruber <jakob.gruber@gmail.com>
pkgname=stone-soup
pkgver=0.10.0
pkgrel=1
pkgdesc='An open-source, single-player, role-playing roguelike game of exploration and treasure-hunting'
arch=('i686' 'x86_64' 'mips64el')
url='http://crawl.develz.org/'
depends=('lua' 'ncurses' 'sdl_image' 'sqlite3' 'libgl' 'mesa' 'freetype2')
makedepends=('bison' 'flex')
conflicts=('crawl' 'stone-soup-tile' 'stone-soup-git')
license=('custom')
install=stone-soup.install
source=("http://downloads.sourceforge.net/sourceforge/crawl-ref/stone_soup-${pkgver}-nodeps.tar.xz"
"${pkgname}.desktop")
build() {
cd "${srcdir}/stone_soup-${pkgver}/source"
# adjust makefile to use /usr/bin, owner root:root,
# disable setgid on executable
sed -i 's|bin_prefix := bin|bin_prefix := usr/bin|' Makefile
sed -i 's/INSTALL_UGRP := games:games/INSTALL_UGRP := root:root/' Makefile
sed -i 's|MCHMOD := 2755|MCHMOD := 755|' Makefile
# first build and install tiles version
make DESTDIR="${pkgdir}" \
SAVEDIR="~/.crawl/" \
DATADIR="/usr/share/${pkgname}/data" \
USE_UNICODE=y \
TILES=y \
install
# rename tiles executable to avoid clashing with console crawl
mv "${pkgdir}/usr/bin/crawl" "${pkgdir}/usr/bin/crawl-tiles"
# then build and install console version
make DESTDIR="${pkgdir}" \
SAVEDIR="~/.crawl/" \
DATADIR="/usr/share/${pkgname}/data" \
USE_UNICODE=y \
install
# install crawl license
install -D -m644 ../licence.txt \
"${pkgdir}/usr/share/licenses/${pkgname}/license.txt"
# install icon and .desktop file
install -D -m644 dat/tiles/stone_soup_icon-32x32.png \
"${pkgdir}/usr/share/pixmaps/${pkgname}.png"
install -D -m644 "${srcdir}/${pkgname}.desktop" \
"${pkgdir}/usr/share/applications/${pkgname}.desktop"
}
# vim: ts=4:sw=4:expandtab
md5sums=('ca360fa13f730f501a0a31b187eeca46'
'afdacb4c39342e75674efb88eeb3da21')
|