summaryrefslogtreecommitdiff
path: root/packaging
diff options
context:
space:
mode:
authorConnor Thomson <blumatrikz@gmail.com>2026-09-08 18:27:39 -0700
committerConnor Thomson <blumatrikz@gmail.com>2026-09-08 18:27:39 -0700
commitf1ddc12b68b4e4c8087962de25260470e6df2bea (patch)
tree7d0440a6402a9b0ef75ded23fa64b68534255bba /packaging
parent6025860a61386bf767b29c3ec5fd0d31285f1056 (diff)
Add tuxanci2 files
Diffstat (limited to 'packaging')
-rw-r--r--packaging/gentoo/tuxanci-0.20.0-r1.ebuild54
-rw-r--r--packaging/gentoo/tuxanci-0.21.0.ebuild58
-rw-r--r--packaging/gentoo/tuxanci-9999.ebuild71
-rwxr-xr-xpackaging/linux/build.sh170
4 files changed, 0 insertions, 353 deletions
diff --git a/packaging/gentoo/tuxanci-0.20.0-r1.ebuild b/packaging/gentoo/tuxanci-0.20.0-r1.ebuild
deleted file mode 100644
index 70115bb..0000000
--- a/packaging/gentoo/tuxanci-0.20.0-r1.ebuild
+++ /dev/null
@@ -1,54 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-inherit games cmake-utils
-
-DESCRIPTION="Tuxanci is first cushion shooter based on well-known Czech game Bulanci."
-HOMEPAGE="http://www.tuxanci.org/"
-SRC_URI="http://download.${PN}.org/${PV}/${P}-src.tar.bz2"
-LICENSE="GPL-2"
-
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="alsa dedicated"
-# alsa is used only when building client
-
-DEPEND="!dedicated? (
- >=media-libs/libsdl-1.2.10
- >=media-libs/sdl-ttf-2.0.7
- >=media-libs/sdl-image-1.2.6-r1
- alsa? (
- >=media-libs/sdl-mixer-1.2.7
- )
- )"
-
-S="${WORKDIR}/pkgs/${P}-src/"
-
-src_unpack() {
- unpack ${A}
- cd "${S}"
- # setting proper prefix
- sed -i \
- -e "s:PATH_DIR\tPREFIX:PATH_DIR:" src/base/path.h \
- || die "sed config.h failed!"
- sed -i \
- -e "s:share/tuxanci:"${GAMES_DATADIR}"/"${PN}":" src/base/path.h \
- || die "sed config.h failed!"
- sed -i \
- -e "s:CMAKE_INSTALL_DATADIR share/:CMAKE_INSTALL_DATADIR /usr/share/games/:" CMakeLists.txt \
- || die "sed CMakeLists.txt failed!"
-}
-
-src_compile() {
- local mycmakeargs
- use alsa || mycmakeargs="${mycmakeargs} -DNO_Audio=1"
- use dedicated && mycmakeargs="${mycmakeargs} -DServer=1"
- mycmakeargs="${mycmakeargs} -DPREFIX=\\\"/usr/games\\\" -DCMAKE_INSTALL_PREFIX:PATH=/usr/games"
- cmake-utils_src_compile
-}
-
-src_install() {
- cmake-utils_src_install
- prepgamesdirs
-}
diff --git a/packaging/gentoo/tuxanci-0.21.0.ebuild b/packaging/gentoo/tuxanci-0.21.0.ebuild
deleted file mode 100644
index 09ab6d4..0000000
--- a/packaging/gentoo/tuxanci-0.21.0.ebuild
+++ /dev/null
@@ -1,58 +0,0 @@
-# Copyright 1999-2008 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/games-arcade/tuxanci/tuxanci-0.21.0.ebuild,v 1.2 2008/10/27 08:56:52 scarabeus Exp $
-
-EAPI="1"
-
-inherit cmake-utils games
-
-DESCRIPTION="Tuxanci is first cushion shooter inspired by game Bulanci."
-HOMEPAGE="http://www.tuxanci.org/"
-SRC_URI="http://download.${PN}.org/${P}.tar.bz2"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="alsa debug dedicated nls"
-# alsa is used only when building client
-
-RDEPEND="!dedicated? (
- >=media-libs/libsdl-1.2.10
- >=media-libs/sdl-ttf-2.0.7
- >=media-libs/sdl-image-1.2.6-r1
- alsa? (
- >=media-libs/sdl-mixer-1.2.7
- )
- )
- dev-libs/zziplib"
-DEPEND="${RDEPEND}
- >=dev-util/cmake-2.6.0
- nls? ( sys-devel/gettext )"
-
-src_configure() {
- local mycmakeargs
- use alsa || mycmakeargs="${mycmakeargs} -DNO_Audio=1"
- use debug && mycmakeargs="${mycmakeargs} -DDebug=1"
- use dedicated && mycmakeargs="${mycmakeargs} -DServer=1"
- use nls && mycmakeargs="${mycmakeargs} -DNLS=1"
- # This cant be quoted due to cmake nature.
- # Read as: quote it and it wont compile.
- mycmakeargs="${mycmakeargs} -DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}
- -DCMAKE_DATA_PATH=${GAMES_DATADIR}
- -DCMAKE_LOCALE_PATH=${GAMES_DATADIR_BASE}/locale/
- -DCMAKE_DOC_PATH=${GAMES_DATADIR_BASE}/doc/
- -DCMAKE_ETC_PATH=${GAMES_SYSCONFDIR} -DLIB_INSTALL_DIR=$(games_get_libdir)"
- cmake-utils_src_configure
-}
-
-src_install() {
- local MY_PN
- use dedicated && MY_PN=${PN}-server || MY_PN=${PN}
-
- cmake-utils_src_install
- dosym "${GAMES_BINDIR}"/${MY_PN}-${PV} "${GAMES_BINDIR}"/${MY_PN}
- doicon data/${PN}.svg
- # we compile our desktop file
- domenu data/${PN}.desktop
- prepgamesdirs
-}
diff --git a/packaging/gentoo/tuxanci-9999.ebuild b/packaging/gentoo/tuxanci-9999.ebuild
deleted file mode 100644
index 5af5965..0000000
--- a/packaging/gentoo/tuxanci-9999.ebuild
+++ /dev/null
@@ -1,71 +0,0 @@
-# Copyright 1999-2009 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: $
-
-EAPI="2"
-
-[[ ${PV} = 9999* ]] && GIT="git"
-EGIT_REPO_URI="git://repo.or.cz/tuxanci.git"
-
-inherit games cmake-utils ${GIT}
-
-DESCRIPTION="Tuxanci is first tux shooter inspired by game Bulanci."
-HOMEPAGE="http://www.tuxanci.org/"
-if [[ ${PV} = 9999* ]]; then
- SRC_URI=""
- KEYWORDS=""
-else
- SRC_URI="http://download.${PN}.org/${P}.tar.bz2"
- KEYWORDS="~amd64 ~x86"
-fi
-LICENSE="GPL-2"
-
-SLOT="0"
-IUSE="debug dedicated +ipv6 nls opengl physfs +sound"
-
-# >=x11-libs/cairo-1.8.8[X,svg]
-RDEPEND="
- !dedicated? (
- >=media-libs/fontconfig-2.7.0
- media-libs/libsdl[X,opengl?]
- media-libs/sdl-ttf[X]
- >=media-libs/sdl-image-1.2.10[png]
- sound? (
- >=media-libs/sdl-mixer-1.2.11[vorbis]
- )
- )
- physfs? ( >=dev-games/physfs-2.0.0[zip] )
- !physfs? ( >=dev-libs/libzip-0.9 )"
-DEPEND="${RDEPEND}
- dev-util/pkgconfig
- nls? ( sys-devel/gettext )"
-
-src_configure() {
- local mycmakeargs+=(
- $(cmake-utils_use_with sound AUDIO)
- $(cmake-utils_use_build dedicated SERVER)
- $(cmake-utils_use_with nls)
- $(cmake-utils_use_with opengl)
- $(cmake-utils_use_with physfs)
- $(cmake-utils_use_enable ipv6)
- $(cmake-utils_use_enable debug)
- )
-
- mycmakeargs+=(
- "-DCMAKE_INSTALL_PREFIX=${GAMES_PREFIX}"
- "-DCMAKE_INSTALL_ICONDIR=${GAMES_DATADIR_BASE}/pixmaps/"
- "-DCMAKE_INSTALL_DESKTOPDIR=${GAMES_DATADIR_BASE}/applications/"
- "-DCMAKE_DATA_PATH=${GAMES_DATADIR}"
- "-DCMAKE_LOCALE_PATH=${GAMES_DATADIR_BASE}/locale/"
- "-DCMAKE_DOC_PATH=${GAMES_DATADIR_BASE}/doc/${PF}"
- "-DCMAKE_CONF_PATH=${GAMES_SYSCONFDIR}"
- )
-
- cmake-utils_src_configure
-}
-
-src_install() {
- cmake-utils_src_install
-
- prepgamesdirs
-}
diff --git a/packaging/linux/build.sh b/packaging/linux/build.sh
deleted file mode 100755
index 4007316..0000000
--- a/packaging/linux/build.sh
+++ /dev/null
@@ -1,170 +0,0 @@
-#!/usr/bin/env sh
-# Created by Tomas Chvatal (Scarabeus_IV)
-###############################################################################
-echo "<******************************>"
-echo "<GNU/Linux TUXANCI Packager>"
-echo "<******************************>"
-# This tool is only for tuxanci game developers, don't use it for yourself
-###############################################################################
-# HELP
-###############################################################################
-if [[ $1 == "--help" ]]; then
- echo "usage: $0 -v version -a arch -r revision"
- echo "-v 0.2.5 \"compile version 0.2.5\""
- echo "-a i386 \"compile 32b ELF (64b for 64b ELF)\""
- echo "!if no version is specified svn version is created!"
- echo "!if no arch is specified 64b is used!"
- echo "!if no revision is specified HEAD is used!"
- exit 1
-fi
-###############################################################################
-# ARGUMENT PASSING
-###############################################################################
-VERSION="dev"
-ARCH="amd64"
-SVN_REV=""
-while getopts v:a: arg ; do
- case $arg in
- v) VERSION=${OPTARG};;
- a) ARCH=${OPTARG};;
- esac
-done
-###############################################################################
-# VARIABLES
-###############################################################################
-APPNAME="tuxanci"
-GIT="git://repo.or.cz/tuxanci.git"
-BUNDLE_PREFIX="${HOME}"/tmp/tuxanci-bundle
-LOG="${BUNDLE_PREFIX}"/linux.log
-SOURCE="${BUNDLE_PREFIX}"/"${APPNAME}-source-${VERSION}"
-D="${BUNDLE_PREFIX}"/"${APPNAME}"
-OPTIONS="client server"
-ERROR_MESSAGE="Check ${LOG}, cause i was unable to finish my stuff correctly!"
-CMAKE_PARAMS="-DWITH_NLS=1 -DTUXANCI_VERSION=${VERSION} -DCMAKE_BUILD_TYPE=Release"
-###############################################################################
-# PREPARING ENVIROMENT
-###############################################################################
-mkdir -p "${BUNDLE_PREFIX}" || { echo "I was unable to create working directory" && exit 1 ; }
-rm -rf "${BUNDLE_PREFIX}"/*
-cd "${BUNDLE_PREFIX}"
-touch "${LOG}" || ( echo "I was unable to create log file"; exit 1 )
-echo "" > "${LOG}" # LOG CLEANUP
-echo "<Downloading files from GIT repository>"
-echo "<******************************>"
-git clone ${GIT} ${SOURCE} >> "${LOG}" || { echo "${ERROR_MESSAGE}" && exit 1 ; }
-rm -rf ${SOURCE}/.git
-rm -rf ${SOURCE}/packaging
-###############################################################################
-# CREATE SOURCE PACKAGE
-###############################################################################
-tar cjf "${APPNAME}-source-${VERSION}".tar.bz2 "${APPNAME}-source-${VERSION}"/
-###############################################################################
-# DEBIAN PACKAGE ENVIROMENT CREATION
-###############################################################################
-for Y in ${OPTIONS}; do
-DEST_DEB="${BUNDLE_PREFIX}"/"${APPNAME}-${Y}"-deb
-echo "<******************************>"
-echo "<Building ${Y} ${ARCH} DEBPKG>"
-echo "<******************************>"
-mkdir "${DEST_DEB}"
-mkdir -p "${DEST_DEB}"/DEBIAN
-mkdir -p "${DEST_DEB}"/usr/share/applications/
-# create desktop file and other debian related
-echo "2.0" > "${DEST_DEB}"/DEBIAN/debian-binary
-echo "[Desktop Entry]
-Name=${APPNAME}-${Y}-${VERSION}
-Comment=game tuxanci
-Exec=${APPNAME}-${Y}-${VERSION}
-Terminal=false
-Type=Application
-Icon=/usr/games/share/doc/${APPNAME}-${Y}-${VERSION}/tuxanci.svg
-Encoding=UTF-8
-Categories=Game;" > "${DEST_DEB}"/usr/share/applications/tuxanci.desktop
-echo "Package: ${APPNAME}-${Y}-${VERSION}
-Version: 0.2.1
-Section: Game
-Priority: optional
-Depends: libc6 (>= 2.2.4-4), libsdl1.2debian (>= 1.2), libsdl-image1.2 (>= 1.2), libsdl-mixer1.2 (>= 1.2), libsdl-ttf2.0-0 (>= 2.0)
-Architecture: ${ARCH}
-Installed-Size: 4993
-Maintainer: Tomas Chvatal <tomas.chvatal@gmail.com>
-Description: Game tuxanci next generation version 0.2.1
- .
- http://www.tuxanci.org" > "${DEST_DEB}"/DEBIAN/control
-###############################################################################
-# BUILDING DEBIAN PACKAGES
-###############################################################################
-CMAKE_PARAMS="${CMAKE_PARAMS} -DCMAKE_INSTALL_PREFIX=/usr/games/"
-if [[ ${Y} == "server" ]]; then
- CMAKE_PARAMS="${CMAKE_PARAMS} -DWITH_SERVER=1"
-fi
-cd "${SOURCE}"
-rm CMakeCache.txt || ( echo "I was unable to cleanup CMakeCache.txt"; exit 1; )
-make clean >> "${LOG}"
-cmake . ${CMAKE_PARAMS} >> "${LOG}" || ( echo "${ERROR_MESSAGE}"; exit 1 )
-make >> "${LOG}" || ( echo "${ERROR_MESSAGE}"; exit 1 )
-make install DESTDIR="${DEST_DEB}" >> "${LOG}" || ( echo "${ERROR_MESSAGE}"; exit 1 )
-cd "${DEST_DEB}"/
-`which strip` --strip-unneeded usr/games/lib/${APPNAME}-${VERSION}/* usr/games/bin/* >> "${LOG}"
-md5sum `find . -type f | awk '/.\// { print substr($0, 3) }'` > DEBIAN/md5sums
-cd "${BUNDLE_PREFIX}"
-Y_N=$(echo ${Y} |tr s S |tr c C)
-dpkg-deb -b "${DEST_DEB}" ${APPNAME}${Y_N}_${VERSION}-1_${ARCH}.deb
-rm -rf "${DEST_DEB}"
-done
-CMAKE_PARAMS="-DBundle=1 -DWITH_NLS=1 -DTUXANCI_VERSION=${VERSION} -DCMAKE_BUILD_TYPE=Release" # duplicating due to override
-###############################################################################
-# BUILDING BINARIES
-###############################################################################
-for Y in ${OPTIONS}; do
-echo "<******************************>"
-echo "<Building ${Y} ${ARCH}>"
-echo "<******************************>"
-if [[ ${Y} == "server" ]]; then
- CMAKE_PARAMS="${CMAKE_PARAMS} -DWITH_SERVER=1"
-fi
-cd "${SOURCE}"
-rm CMakeCache.txt || ( echo "I was unable to cleanup CMakeCache.txt"; exit 1; )
-make clean >> "${LOG}"
-cmake . ${CMAKE_PARAMS} >> "${LOG}" || ( echo "${ERROR_MESSAGE}"; exit 1 )
-make >> "${LOG}" || ( echo "${ERROR_MESSAGE}"; exit 1 )
-make install DESTDIR="${D}-${Y}-${VERSION}-${ARCH}/" >> "${LOG}" || ( echo "${ERROR_MESSAGE}"; exit 1 )
-cd "${D}"-"${Y}"-"${VERSION}"-"${ARCH}"/
-`which strip` --strip-unneeded lib/${APPNAME}-${VERSION}/* bin/* >> "${LOG}"
-done
-###############################################################################
-# DESTRUCTION OF SRC
-###############################################################################
-cd "${BUNDLE_PREFIX}"
-rm -rf "${SOURCE}"
-###############################################################################
-# BUILDING TARS
-###############################################################################
-echo "<Creating tar.bz2 archives>"
-echo "<******************************>"
-for Y in ${OPTIONS} ; do
- tar cjf "${APPNAME}"-"${Y}"-"${VERSION}"-"${ARCH}".tar.bz2 "${APPNAME}"-"${Y}"-${VERSION}-"${ARCH}"/*
-done
-###############################################################################
-# DESTRUCTION OF UNPACKED BINARIES
-###############################################################################
-for Y in ${OPTIONS} ; do
- rm -rf "${APPNAME}"-"${Y}"-${VERSION}-"${ARCH}"/
-done
-###############################################################################
-# SHOW WHAT HAVE WE DONE
-###############################################################################
-echo "<What have i created :>"
-echo "<******************************>"
-find ./ -maxdepth 1 -type f \( -name \*.tar.bz2 -print , -name \*.deb -print \) | while read FILE ; do
- echo "FILE: ${FILE}"
- echo " SIZE: $(`which du` -h ${FILE} |`which awk` -F' ' '{print $1}')"
- echo " MD5SUM: $(`which md5sum` ${FILE} |`which awk` -F' ' '{print $1}')"
- echo " SHA1SUM: $(`which sha1sum` ${FILE} |`which awk` -F' ' '{print $1}')"
- echo
-done
-echo
-echo
-echo "<GNU/Linux binary packages are ready>"
-echo
-echo