-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathMakefile
65 lines (51 loc) · 1.69 KB
/
Makefile
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
# SPDX-License-Identifier: GPL-2.0-only
#
# Copyright (C) 2011-2025 Entware
include $(TOPDIR)/rules.mk
PKG_NAME:=crawl
PKG_VERSION:=0.32.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/crawl/crawl/tar.gz/$(PKG_VERSION)?
PKG_HASH:=8b9330a9a8156a7b93cc0964b5cc7cba8312f0cf745b64a072432f17f67f889d
PKG_BUILD_DEPENDS:=python-yaml/host
include $(INCLUDE_DIR)/package.mk
define Package/crawl
SECTION:=games
CATEGORY:=Games
DEPENDS:=+liblua +libncursesw +libsqlite3 +libstdcpp +zlib
TITLE:=Dungeon Crawl Stone Soup is a role-playing roguelike game
URL:=https://crawl.develz.org
MAINTAINER:=Entware team, https://entware.net
endef
define Package/crawl/description
Dungeon Crawl Stone Soup is an open-source, single-player, role-playing
roguelike game of exploration and treasure-hunting in dungeons filled
with dangerous and unfriendly monsters in a quest to rescue
the mystifyingly fabulous Orb of Zot.
endef
MAKE_PATH:=crawl-ref/source
define Build/Configure
echo $(PKG_VERSION) > $(PKG_BUILD_DIR)/crawl-ref/source/util/release_ver
endef
MAKE_FLAGS += \
prefix=/opt \
DESTDIR=$(PKG_INSTALL_DIR) \
DATADIR=/opt/share/crawl/ \
SAVEDIR=/opt/var/crawl/ \
NO_TRY_GOLD=yes \
install
define Package/crawl/install
$(INSTALL_DIR) $(1)/opt/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/opt/bin/crawl $(1)/opt/bin
$(INSTALL_DIR) $(1)/opt/share/crawl
$(CP) $(PKG_INSTALL_DIR)/opt/share/crawl/* $(1)/opt/share/crawl
$(INSTALL_DIR) $(1)/opt/var/crawl/{morgue,saves}
endef
define Package/crawl/postrm
#!/bin/sh
rm -rf /opt/share/crawl
echo Crawl saves \(~5Mb\) still is in /opt/var/crawl
echo You may delete it manually later.
endef
$(eval $(call BuildPackage,crawl))