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

34
eureka/PKGBUILD Normal file
View File

@@ -0,0 +1,34 @@
# Maintainer: Jesus E. <heckyel@riseup.net>
pkgname=eureka
pkgver=1.27b
pkgrel=2
pkgdesc="A free and libre map editor for the classic DOOM games"
arch=('i686' 'x86_64')
url='http://eureka-editor.sourceforge.net/'
license=('GPL-2')
depends=('fltk' 'glu')
groups=('games')
source=("https://download.sourceforge.net/${pkgname}-editor/${pkgname}-${pkgver}-source.tar.gz"
"fhs-compliant.patch")
sha512sums=('4b2ce44a99acbe1b9dd2cf31ee5c3307f5f667422ba18bee8c3f9858e9244ee05c48e96b5afa4cdf65dfd079bca19a5693b6d123b5563549d1f84ca03137eb5e'
'1021a712f80be5a9934aa88bd334d7cf865c2f80ac593ebb7dcb3a1e5484410dc068ac635cb7dc00b8fc0bdba497ce43a14c18205a6b1bdfa87901644db0f66f')
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}-source"
patch -p1 -i "${srcdir}/fhs-compliant.patch"
}
build() {
cd "${srcdir}/${pkgname}-${pkgver}-source"
make PREFIX=/usr OPTIMISE="$CXXFLAGS $CPPFLAGS"
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}-source"
make PREFIX="${pkgdir}/usr" install
install -Dm644 "${srcdir}/${pkgname}-${pkgver}-source/misc/${pkgname}.xpm" "${pkgdir}/usr/share/pixmaps/${pkgname}.xpm"
install -Dm644 "${srcdir}/${pkgname}-${pkgver}-source/misc/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
install -Dm644 "${srcdir}/${pkgname}-${pkgver}-source/misc/${pkgname}.6" "${pkgdir}/usr/share/man/man6/${pkgname}.6"
install -Dm644 "${srcdir}/${pkgname}-${pkgver}-source/GPL.txt" -t "${pkgdir}/usr/share/licenses/${pkgname}"
}

View File

@@ -0,0 +1,58 @@
--- a/Makefile 2020-02-05 08:40:29.000000000 +0100
+++ b/Makefile 2022-07-18 13:58:58.438529428 +0200
@@ -148,10 +148,11 @@
# note that DESTDIR is usually left undefined, and is mainly
# useful when making packages for Debian/RedHat/etc...
-INSTALL_DIR=$(DESTDIR)$(PREFIX)/share/eureka
+INSTALL_DIR=$(DESTDIR)$(PREFIX)/share/games/eureka
install: all
- install -m 755 $(PROGRAM) $(DESTDIR)$(PREFIX)/bin/
+ install -d $(PREFIX)/games
+ install -m 755 $(PROGRAM) $(DESTDIR)$(PREFIX)/games/
install -d $(INSTALL_DIR)/games
install -d $(INSTALL_DIR)/common
install -d $(INSTALL_DIR)/ports
--- a/src/main.cc 2020-02-01 08:51:21.000000000 +0100
+++ b/src/main.cc 2022-07-18 14:05:28.527907253 +0200
@@ -325,7 +325,7 @@
for (int i = 0 ; prefixes[i] ; i++)
{
- install_dir = StringPrintf("%s/share/eureka", prefixes[i]);
+ install_dir = StringPrintf("%s/share/games/eureka", prefixes[i]);
const char *filename = StringPrintf("%s/games/doom2.ugh", install_dir);
--- a/src/main.h 2020-04-17 07:58:51.000000000 +0200
+++ b/src/main.h 2022-07-18 14:05:55.778562364 +0200
@@ -129,7 +129,7 @@
extern bool app_has_focus;
extern bool in_fatal_error;
-extern const char *install_dir; // install dir (e.g. /usr/share/eureka)
+extern const char *install_dir; // install dir (e.g. /usr/share/games/eureka)
extern const char *home_dir; // home dir (e.g. $HOME/.eureka)
extern const char *cache_dir; // for caches and backups, can be same as home_dir
--- a/misc/eureka.6 2019-09-30 08:55:30.000000000 +0200
+++ b/misc/eureka.6 2022-07-18 14:07:15.540479856 +0200
@@ -77,7 +77,7 @@
The installation directory where game definition files, default key
bindings, etc are stored.
This defaults to
-.I $PREFIX/share/eureka
+.I $PREFIX/share/games/eureka
(see FILES section below...)
Specifying "." for the current directory is useful when testing a
@@ -101,7 +101,7 @@
uses the Preferences dialog.
.SH FILES
.TP
-.I "$PREFIX/share/eureka/
+.I "$PREFIX/share/games/eureka/
The installation directory for Eureka.
PREFIX is typically /usr or /usr/local,
depending on how Eureka was installed.