mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
games-fps/assaultcube: initial import
Signed-off-by: Duje Mihanović <duje.mihanovic@skole.hr>
This commit is contained in:
4 files changed
+65
No files matched your search
@@ -0,0 +1 @@
|
||||
DIST assaultcube-1.3.0.2.tar.gz 51034819 BLAKE2B 61800ed2d7cec797af3bc683a7439d4e8b6dda453bdee4e3f331ab43c973c6d754aacc2e38f4f5535d991c1e755800bc6d178994500f7785a41053d399296756 SHA512 8488c399036532859f7c83d094ac1443c52aa6367d106cc5889b80353ff1d501f7b8ae3b51e34b03215cc88dacc5f29488635047ce90291c601f8f7582498685
|
||||
@@ -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
|
||||
}
|
||||
@@ -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>
|
||||
@@ -0,0 +1,2 @@
|
||||
AssaultCube's licensing is very specific, please take a look at:
|
||||
https://assault.cubers.net/docs/license.html
|
||||
Reference in new issue
Block a user