1 |
commit: f5e530c289712914229b9447a72db91f860caf77 |
2 |
Author: Duje Mihanović <duje.mihanovic <AT> skole <DOT> hr> |
3 |
AuthorDate: Wed Apr 6 18:48:41 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Apr 6 18:48:41 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=f5e530c2 |
7 |
|
8 |
games-fps/assaultcube: initial import |
9 |
|
10 |
Signed-off-by: Duje Mihanović <duje.mihanovic <AT> skole.hr> |
11 |
|
12 |
games-fps/assaultcube/Manifest | 1 + |
13 |
games-fps/assaultcube/assaultcube-1.3.0.2.ebuild | 54 ++++++++++++++++++++++++ |
14 |
games-fps/assaultcube/metadata.xml | 8 ++++ |
15 |
licenses/assaultcube | 2 + |
16 |
4 files changed, 65 insertions(+) |
17 |
|
18 |
diff --git a/games-fps/assaultcube/Manifest b/games-fps/assaultcube/Manifest |
19 |
new file mode 100644 |
20 |
index 000000000..9fdccef2a |
21 |
--- /dev/null |
22 |
+++ b/games-fps/assaultcube/Manifest |
23 |
@@ -0,0 +1 @@ |
24 |
+DIST assaultcube-1.3.0.2.tar.gz 51034819 BLAKE2B 61800ed2d7cec797af3bc683a7439d4e8b6dda453bdee4e3f331ab43c973c6d754aacc2e38f4f5535d991c1e755800bc6d178994500f7785a41053d399296756 SHA512 8488c399036532859f7c83d094ac1443c52aa6367d106cc5889b80353ff1d501f7b8ae3b51e34b03215cc88dacc5f29488635047ce90291c601f8f7582498685 |
25 |
|
26 |
diff --git a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000..a4af1076e |
29 |
--- /dev/null |
30 |
+++ b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild |
31 |
@@ -0,0 +1,54 @@ |
32 |
+# Copyright 1999-2022 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=8 |
36 |
+ |
37 |
+inherit desktop xdg-utils |
38 |
+ |
39 |
+DESCRIPTION="Free multiplayer FPS based on the Cube engine" |
40 |
+HOMEPAGE="https://assault.cubers.net/" |
41 |
+SRC_URI="https://github.com/assaultcube/AC/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" |
42 |
+S="${WORKDIR}/AC-${PV}" |
43 |
+LICENSE="ZLIB assaultcube" |
44 |
+SLOT="0" |
45 |
+KEYWORDS="~amd64" |
46 |
+RDEPEND="sys-libs/zlib media-libs/libsdl2 media-libs/sdl2-image x11-libs/libX11 media-libs/libogg media-libs/libvorbis media-libs/openal" |
47 |
+DEPEND="${RDEPEND}" |
48 |
+BDEPEND="sys-devel/clang" |
49 |
+ |
50 |
+src_prepare() { |
51 |
+ eapply_user |
52 |
+ sed -i 's|//#define PRODUCTION|#define PRODUCTION|' "${S}/source/src/cube.h" |
53 |
+ rm -rf "${S}/source/include" |
54 |
+} |
55 |
+ |
56 |
+src_compile() { |
57 |
+ cd "${S}/source/src" |
58 |
+ emake |
59 |
+} |
60 |
+ |
61 |
+src_install() { |
62 |
+ cd "${S}/source/src" |
63 |
+ emake install |
64 |
+ |
65 |
+ install -dm755 "${D}/usr/share/assaultcube" |
66 |
+ install -Dm755 "${S}"/{assaultcube.sh,check_install.sh,server.sh,server_wizard.sh} -t "${D}/usr/share/assaultcube" |
67 |
+ install -Dm755 "${S}/bin_unix/native_client" -t "${D}/usr/share/assaultcube/bin_unix" |
68 |
+ cp -r "${S}"/{bot,config,demos,docs,mods,packages} "${D}/usr/share/assaultcube/" |
69 |
+ install -Dm644 "${S}"/{CONTRIBUTING.md,GOVERNANCE.md,README.{html,md},SECURITY.md} -t "${D}/usr/share/assaultcube" |
70 |
+ |
71 |
+ make_desktop_entry \ |
72 |
+ "/usr/share/assaultcube/assaultcube.sh %u" \ |
73 |
+ AssaultCube \ |
74 |
+ /usr/share/assaultcube/packages/misc/icon.png \ |
75 |
+ Game \ |
76 |
+ "Keywords=assaultcube;game;fps;\nMimeType=x-scheme-handler/assaultcube" |
77 |
+} |
78 |
+ |
79 |
+pkg_postinst() { |
80 |
+ xdg_desktop_database_update |
81 |
+} |
82 |
+ |
83 |
+pkg_postrm() { |
84 |
+ xdg_desktop_database_update |
85 |
+} |
86 |
|
87 |
diff --git a/games-fps/assaultcube/metadata.xml b/games-fps/assaultcube/metadata.xml |
88 |
new file mode 100644 |
89 |
index 000000000..62988a0d4 |
90 |
--- /dev/null |
91 |
+++ b/games-fps/assaultcube/metadata.xml |
92 |
@@ -0,0 +1,8 @@ |
93 |
+<?xml version="1.0" encoding="UTF-8"?> |
94 |
+<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'> |
95 |
+<pkgmetadata> |
96 |
+ <maintainer type="person"> |
97 |
+ <email>duje.mihanovic@×××××.hr</email> |
98 |
+ <name>Duje Mihanović</name> |
99 |
+ </maintainer> |
100 |
+</pkgmetadata> |
101 |
|
102 |
diff --git a/licenses/assaultcube b/licenses/assaultcube |
103 |
new file mode 100644 |
104 |
index 000000000..8ee6f033d |
105 |
--- /dev/null |
106 |
+++ b/licenses/assaultcube |
107 |
@@ -0,0 +1,2 @@ |
108 |
+AssaultCube's licensing is very specific, please take a look at: |
109 |
+https://assault.cubers.net/docs/license.html |