aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuje Mihanović <duje.mihanovic@skole.hr>2022-04-06 20:48:41 +0200
committerDuje Mihanović <duje.mihanovic@skole.hr>2022-04-06 20:48:41 +0200
commitf5e530c289712914229b9447a72db91f860caf77 (patch)
tree5bb6c430fb541b921f8cf5627feca0543444c2c0 /games-fps
parentAdd emails checker against bugzilla workflow (diff)
downloadguru-f5e530c289712914229b9447a72db91f860caf77.tar.gz
guru-f5e530c289712914229b9447a72db91f860caf77.tar.bz2
guru-f5e530c289712914229b9447a72db91f860caf77.zip
games-fps/assaultcube: initial import
Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
Diffstat (limited to 'games-fps')
-rw-r--r--games-fps/assaultcube/Manifest1
-rw-r--r--games-fps/assaultcube/assaultcube-1.3.0.2.ebuild54
-rw-r--r--games-fps/assaultcube/metadata.xml8
3 files changed, 63 insertions, 0 deletions
diff --git a/games-fps/assaultcube/Manifest b/games-fps/assaultcube/Manifest
new file mode 100644
index 000000000..9fdccef2a
--- /dev/null
+++ b/games-fps/assaultcube/Manifest
@@ -0,0 +1 @@
+DIST assaultcube-1.3.0.2.tar.gz 51034819 BLAKE2B 61800ed2d7cec797af3bc683a7439d4e8b6dda453bdee4e3f331ab43c973c6d754aacc2e38f4f5535d991c1e755800bc6d178994500f7785a41053d399296756 SHA512 8488c399036532859f7c83d094ac1443c52aa6367d106cc5889b80353ff1d501f7b8ae3b51e34b03215cc88dacc5f29488635047ce90291c601f8f7582498685
diff --git a/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
new file mode 100644
index 000000000..a4af1076e
--- /dev/null
+++ b/games-fps/assaultcube/assaultcube-1.3.0.2.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop xdg-utils
+
+DESCRIPTION="Free multiplayer FPS based on the Cube engine"
+HOMEPAGE="https://assault.cubers.net/"
+SRC_URI="https://github.com/assaultcube/AC/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/AC-${PV}"
+LICENSE="ZLIB assaultcube"
+SLOT="0"
+KEYWORDS="~amd64"
+RDEPEND="sys-libs/zlib media-libs/libsdl2 media-libs/sdl2-image x11-libs/libX11 media-libs/libogg media-libs/libvorbis media-libs/openal"
+DEPEND="${RDEPEND}"
+BDEPEND="sys-devel/clang"
+
+src_prepare() {
+ eapply_user
+ sed -i 's|//#define PRODUCTION|#define PRODUCTION|' "${S}/source/src/cube.h"
+ rm -rf "${S}/source/include"
+}
+
+src_compile() {
+ cd "${S}/source/src"
+ emake
+}
+
+src_install() {
+ cd "${S}/source/src"
+ emake install
+
+ install -dm755 "${D}/usr/share/assaultcube"
+ install -Dm755 "${S}"/{assaultcube.sh,check_install.sh,server.sh,server_wizard.sh} -t "${D}/usr/share/assaultcube"
+ install -Dm755 "${S}/bin_unix/native_client" -t "${D}/usr/share/assaultcube/bin_unix"
+ cp -r "${S}"/{bot,config,demos,docs,mods,packages} "${D}/usr/share/assaultcube/"
+ install -Dm644 "${S}"/{CONTRIBUTING.md,GOVERNANCE.md,README.{html,md},SECURITY.md} -t "${D}/usr/share/assaultcube"
+
+ make_desktop_entry \
+ "/usr/share/assaultcube/assaultcube.sh %u" \
+ AssaultCube \
+ /usr/share/assaultcube/packages/misc/icon.png \
+ Game \
+ "Keywords=assaultcube;game;fps;\nMimeType=x-scheme-handler/assaultcube"
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+}
diff --git a/games-fps/assaultcube/metadata.xml b/games-fps/assaultcube/metadata.xml
new file mode 100644
index 000000000..62988a0d4
--- /dev/null
+++ b/games-fps/assaultcube/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
+<pkgmetadata>
+ <maintainer type="person">
+ <email>duje.mihanovic@skole.hr</email>
+ <name>Duje Mihanović</name>
+ </maintainer>
+</pkgmetadata>