makedeb
1oom is a Master of Orion (1993) game engine recreation.
Click here to go back to the commit logs for 1oom.
Hash: 9b1335390423650039d2fade5ef6a5711500d307
Message: Initial mpr release
diff --git a/.SRCINFO b/.SRCINFO
index f432675..5e00a65 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,24 +1,31 @@
-pkgbase = 1oom-git
- pkgdesc = 1oom is a Master of Orion (1993) game engine recreation.
- pkgver = r1047.813ab8df
- pkgrel = 1
- url = https://github.com/1oom-fork/1oom
- arch = x86_64
- license = GPL2
- makedepends = git
- depends = sdl2
- depends = sdl2_mixer
- depends = libsamplerate
- depends = soundfont-fluid
- provides = 1oom
- conflicts = 1oom
- source = git+https://github.com/1oom-fork/1oom.git
- source = Master_of_Orion_cover.png
- source = 1oom.desktop
- source = 1oom_classic_sdl2.sh
- md5sums = SKIP
- md5sums = 49248e72b7ddc5209cca2c1c61099d85
- md5sums = ccac2feb67cecfc30b8156edf106b7ca
- md5sums = 41b52627b2d52b477adcbc2a9a627b37
-
-pkgname = 1oom-git
+generated-by = makedeb
+pkgname = 1oom
+pkgbase = 1oom
+pkgdesc = 1oom is a Master of Orion (1993) game engine recreation.
+pkgrel = 0
+pkgver = 1.8.0
+url = https://github.com/1oom-fork/1oom
+arch = amd64
+arch = i386
+depends = libsdl2-2.0-0
+depends = libsdl2-mixer-2.0-0
+depends = libsamplerate0
+license = GPL2
+makedepends = libsdl2-dev
+makedepends = libsdl2-mixer-dev
+makedepends = libsamplerate0-dev
+optdepends = timgm6mb-soundfont: Soundfont, average but small
+optdepends = fluid-soundfont-gm: Soundfont, good but big
+optdepends = game-data-packager: Installer for game data files
+source = 1oom-1.8.0.tar.gz::https://github.com/1oom-fork/1oom/archive/refs/tags/f1.8.0.tar.gz
+source = 1oom.png
+source = 1oom.desktop
+b2sums = c7f5251eccf10802554d2c2965906c246c8ad92abb4d57e95aa4ad920faa1977058ed7a89e573e718371d275129ee296a79c9304c1117d14956aa493576570f4
+b2sums = 9698161cc4a241d13f7c377b4417ae5807d02a0ee544929fac98d60d454f2c9784223e9764ad5ef568afc6b69af6cd9d729c4a59bbc4a7161bb30d053eb30390
+b2sums = 7f1e3dd0899920e012d2bf25f12055f311efd6aecea1cde03a3f054590e63e021c84a546382ee444fa6c511b4fa0a2ff5eb758a9ad9829d0a3fe32f8a1c7f0f1
+makedepends = libsdl2-dev
+makedepends = libsdl2-mixer-dev
+makedepends = libsamplerate0-dev
+optdepends = timgm6mb-soundfont: Soundfont, average but small
+optdepends = fluid-soundfont-gm: Soundfont, good but big
+optdepends = game-data-packager: Installer for game data files
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..cdb73e6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+*.tar.gz
+*.deb
+pkg/
+src/
diff --git a/1oom.desktop b/1oom.desktop
index a9e4a44..ff7e8a2 100644
--- a/1oom.desktop
+++ b/1oom.desktop
@@ -1,8 +1,16 @@
[Desktop Entry]
+Version=1.0
+
Type=Application
-Name=Master of Orion (1oom)
-Path=/usr/bin
-Exec=1oom_classic_sdl2
+Name=1oom
+Name[en]=1oom
+GenericName=Master of Orion (1993) game engine recreation.
+GenericName[en]=Master of Orion (1993) game engine recreation.
+Comment=Turn-based space empire and galactic conquest (4X) computer game
+Comment[en]=Turn-based space empire and galactic conquest (4X) computer game
+Exec=1oom
+TryExec=1oom
Icon=1oom
-Terminal=false
-Categories=Games;
+StartupNotify=false
+Categories=Game;StrategyGame;
+Keywords=space;strategy;empire;galaxy;turn-based;aliens;species;planets;fleet;research;resources;
diff --git a/1oom.png b/1oom.png
new file mode 100644
index 0000000..8c38029
Binary files /dev/null and b/1oom.png differ
diff --git a/1oom_classic_sdl2.sh b/1oom_classic_sdl2.sh
deleted file mode 100755
index 110da2b..0000000
--- a/1oom_classic_sdl2.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-SDL_SOUNDFONTS=/usr/share/soundfonts/FluidR3_GM.sf2 /usr/bin/1oom_classic_sdl2-bin
diff --git a/Master_of_Orion_cover.png b/Master_of_Orion_cover.png
deleted file mode 100644
index 7bfc592..0000000
Binary files a/Master_of_Orion_cover.png and /dev/null differ
diff --git a/PKGBUILD b/PKGBUILD
index d224f91..badf6ab 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,63 +1,52 @@
-# Maintainer: Alexander Jacocks <alexander@redhat.com>
-# Contributor: Frederic Bezies <fredbezies at gmail dot com>
-# Contributor: Benjamin Hodgetts <ben@xnode.org>
-
-pkgname=1oom-git
-_pkgname=1oom
-pkgver=r1047.813ab8df
-pkgrel=1
+# Maintainer: exponential <echo ZXhwb25lbnRpYWxtYXRyaXhAcHJvdG9ubWFpbC5jb20K | base64 -d>
+# Contributor: Alexander Jacocks (AUR) <alexander@redhat.com>
+# Contributor: Frederic Bezies (AUR) <fredbezies at gmail dot com>
+# Contributor: Benjamin Hodgetts (AUR) <ben@xnode.org>
+
+pkgname=1oom
+pkgver=1.8.0
+pkgrel=0
pkgdesc="1oom is a Master of Orion (1993) game engine recreation."
-arch=(x86_64)
+arch=('amd64' 'i386')
url=https://github.com/1oom-fork/1oom
license=('GPL2')
-depends=(sdl2 sdl2_mixer libsamplerate soundfont-fluid)
-makedepends=(git)
-provides=(1oom)
-conflicts=(1oom)
-source=( 'git+https://github.com/1oom-fork/1oom.git'
- 'Master_of_Orion_cover.png'
- '1oom.desktop'
- '1oom_classic_sdl2.sh' )
-md5sums=('SKIP'
- '49248e72b7ddc5209cca2c1c61099d85'
- 'ccac2feb67cecfc30b8156edf106b7ca'
- '41b52627b2d52b477adcbc2a9a627b37')
-
-pkgver() {
- cd "${srcdir}/${_pkgname}"
- echo "r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
-}
+makedepends=('libsdl2-dev' 'libsdl2-mixer-dev' 'libsamplerate0-dev')
+depends=('libsdl2-2.0-0' 'libsdl2-mixer-2.0-0' 'libsamplerate0')
+optdepends=('timgm6mb-soundfont: Soundfont, average but small'
+ 'fluid-soundfont-gm: Soundfont, good but big'
+ 'game-data-packager: Installer for game data files')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/${pkgname}-fork/${pkgname}/archive/refs/tags/f${pkgver}.tar.gz"
+ "${pkgname}.png"
+ "${pkgname}.desktop")
+b2sums=('c7f5251eccf10802554d2c2965906c246c8ad92abb4d57e95aa4ad920faa1977058ed7a89e573e718371d275129ee296a79c9304c1117d14956aa493576570f4'
+ '9698161cc4a241d13f7c377b4417ae5807d02a0ee544929fac98d60d454f2c9784223e9764ad5ef568afc6b69af6cd9d729c4a59bbc4a7161bb30d053eb30390'
+ '7f1e3dd0899920e012d2bf25f12055f311efd6aecea1cde03a3f054590e63e021c84a546382ee444fa6c511b4fa0a2ff5eb758a9ad9829d0a3fe32f8a1c7f0f1')
build() {
- cd ${_pkgname}
+ cd "${pkgname}-f${pkgver}"
autoreconf -fi
test -d build-native || mkdir build-native
cd build-native
- ../configure --prefix=/usr
- { test "$(nproc)" -gt 1 && make -j"$(nproc)" ;} || make
+ ../configure --prefix=/usr --bindir=/usr/games
+ make -j "$(nproc)"
}
package() {
- cd "${srcdir}/${_pkgname}/build-native"
- make PREFIX="/usr" DESTDIR="${pkgdir}" install
+ cd "${srcdir}/${pkgname}-f${pkgver}"
+ make PREFIX="/usr" DESTDIR="${pkgdir}" install -C "build-native"
# install docs
- cd "${srcdir}/${_pkgname}/doc"
- mkdir -p "$pkgdir/usr/share/doc/${_pkgname}"
- cp *.txt "$pkgdir/usr/share/doc/${_pkgname}/"
- cd ..
- cp AUTHORS CHANGES CHANGES-GIT CODE_OF_CONDUCT COMPILING COPYING HACKING NEWS PHILOSOPHY README.md "$pkgdir/usr/share/doc/${_pkgname}/"
-
- # create storage directory for MOO data
- mkdir -p "$pkgdir/usr/share/1oom"
+ mkdir -p "$pkgdir/usr/share/doc/${pkgname}/instructions"
+ cp README.md "$pkgdir/usr/share/doc/${pkgname}/readme"
+ cp doc/*.txt "$pkgdir/usr/share/doc/${pkgname}/instructions/"
+ cp AUTHORS CHANGES CODE_OF_CONDUCT COMPILING COPYING HACKING NEWS PHILOSOPHY "$pkgdir/usr/share/doc/${pkgname}/"
- # install launch script
- mv "$pkgdir/usr/bin/1oom_classic_sdl2" "$pkgdir/usr/bin/1oom_classic_sdl2-bin"
- install -m 0755 "${srcdir}/1oom_classic_sdl2.sh" "$pkgdir/usr/bin/1oom_classic_sdl2"
+ # Convenience symlink
+ ln -s "/usr/games/1oom_classic_sdl2" "$pkgdir/usr/games/${pkgname}"
# install icon
- install -Dm 0644 ${srcdir}/Master_of_Orion_cover.png $pkgdir/usr/share/icons/hicolor/256x256/apps/${_pkgname}.png
+ install -Dm 0644 "${srcdir}/${pkgname}.png" "$pkgdir/usr/share/icons/hicolor/96x96/apps/${pkgname}.png"
# install desktop file
- install -Dm644 ${srcdir}/${_pkgname}.desktop $pkgdir/usr/share/applications/${_pkgname}.desktop
+ install -Dm644 "${srcdir}/${pkgname}.desktop" "$pkgdir/usr/share/applications/${pkgname}.desktop"
}