initial import

This commit is contained in:
2025-06-22 20:39:04 -05:00
commit f8a70886f0
3428 changed files with 302546 additions and 0 deletions

86
ufoai/PKGBUILD Normal file
View File

@@ -0,0 +1,86 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=ufoai
pkgver=2.5
_debver=$pkgver
_debrel=6
pkgrel=1
pkgdesc="In 'UFO: Alien Invasion' you fight aliens trying to capture Earth"
url='http://ufoai.org/'
license=('GPL-2' 'Public-Domain')
arch=('i686' 'x86_64')
depends=('libjpeg-turbo' 'mesa-libgl' 'libpng' 'curl' 'sdl2_image' 'sdl2_mixer'
'sdl2_ttf' 'libtheora' 'xvidcore' 'glu' 'openal' 'gtksourceview2'
'gtkglext')
makedepends=('python' 'zip' 'quilt' 'intltool')
optdepends=('python: for compiling self-created maps')
groups=('games')
source=("https://sourceforge.net/projects/${pkgname}/files/UFO_AI%202.x/${pkgver}/${pkgname}-${pkgver}-source.tar.bz2"
"https://sourceforge.net/projects/${pkgname}/files/UFO_AI%202.x/${pkgver}/${pkgname}-${pkgver}-data.tar"
"https://deb.debian.org/debian/pool/main/u/ufoai/ufoai_${_debver}-${_debrel}.debian.tar.xz"
"fix-build.patch")
sha512sums=('072fe8820b1b242bb13f0820459fc27092b8597573231c8921c711859df39c8e28d9854e8a0300ebabb38cdeb99db16bed388a1391ba9f54100268b831db056f'
'9a7be359c82cd633db657c8619cb488b5d41b9f93cd10bdeffd5896d8a1ba3bb828b5969acd14c2a69abb3f53f18113af4ca19435aea80ded94d8df68b11deec'
'dc03bd846aa168b75964f3a7eb3db9cfbbe4c1c7a5ff243b1c20aaa2be11285e516301905aa00db912ed87186c1cba4ae1b595af0ded549d37a22781e57aef03'
'c33cc620dadaa7e0f679e30e9aba430a523c3cae6a6cded374a8dcd84d0ec7af869d997efae83e6f46cf51b2fe4d127c9759f5c61cdc9f088b015e65a150b36f')
prepare() {
cd $pkgname-$pkgver-source
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
# Debian patches
export QUILT_PATCHES=debian/patches
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
export QUILT_DIFF_ARGS='--no-timestamps'
mv "$srcdir"/debian/patches ./debian/
rm -rf "$srcdir"/debian
quilt push -av
fi
# additional patches for building
patch -Np1 -i ${srcdir}/fix-build.patch
# remove unsupported languages
rm ${srcdir}/$pkgname-$pkgver-source/src/po/ufoai-{ja,tr}.po
}
build() {
cd $pkgname-$pkgver-source
./configure \
--prefix=/usr \
--bindir=/usr/games \
--datadir=/usr/share/games/$pkgname \
--localedir=/usr/share/games/$pkgname/base/i18n \
--libdir=/usr/lib/games/$pkgname \
--enable-release \
--enable-uforadiant
make
make lang
}
package() {
cd $pkgname-$pkgver-source
make DESTDIR="${pkgdir}" install
# gamedata
rm "${pkgdir}"/usr/share/games/$pkgname/base/*.pk3
cp "${srcdir}"/base/*.pk3 "${pkgdir}/usr/share/games/${pkgname}/base"
# licenses
mkdir -p "${pkgdir}/usr/share/licenses/${pkgname}"
cp COPYING LICENSES "${pkgdir}/usr/share/licenses/${pkgname}/"
# desktop-files
install -Dm644 debian/ufoai.desktop "${pkgdir}/usr/share/applications/ufoai.desktop"
install -Dm644 debian/ufoai-safe.desktop "${pkgdir}/usr/share/applications/ufoai-safe.desktop"
install -Dm644 debian/ufoded.desktop "${pkgdir}/usr/share/applications/ufoded.desktop"
# icons
install -Dm644 debian/ufoai.xpm "${pkgdir}/usr/share/pixmaps/ufoai.xpm"
install -Dm644 debian/ufoded.xpm "${pkgdir}/usr/share/pixmaps/ufoded.xpm"
}

23
ufoai/fix-build.patch Normal file
View File

@@ -0,0 +1,23 @@
--- a/src/client/battlescape/cl_particle.cpp 2014-06-05 06:18:39.000000000 +0200
+++ b/src/client/battlescape/cl_particle.cpp 2022-01-06 14:05:37.009558947 +0100
@@ -138,7 +138,7 @@
CASSERT(lengthof(pc_strings) == PC_NUM_PTLCMDS);
/** @brief particle commands parameter and types */
-static const int pc_types[PC_NUM_PTLCMDS] = {
+static const unsigned int pc_types[PC_NUM_PTLCMDS] = {
0,
V_UNTYPED, V_UNTYPED, V_UNTYPED,
--- a/src/tools/radiant/libs/gtkutil/glfont.cpp 2014-06-05 06:18:39.000000000 +0200
+++ b/src/tools/radiant/libs/gtkutil/glfont.cpp 2022-01-06 15:16:09.000000000 +0100
@@ -22,7 +22,8 @@
#include "glfont.h"
#include <GL/gl.h>
#include "debugging/debugging.h"
-#include <gtk/gtkglwidget.h>
+#include <gtk/gtk.h>
+#include <gtk/gtkgl.h>
GLFont glfont_create (const std::string& font_string)
{