Skip to content

Commit 03002fb

Browse files
authored
Fixing melange (#9)
1 parent 1f95c0a commit 03002fb

File tree

6 files changed

+167
-191
lines changed

6 files changed

+167
-191
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,22 @@ jobs:
2222
- name: Build project
2323
run: |
2424
# Test that the project builds correctly
25+
cd gpl-release
2526
make clean || true
26-
make all
27+
make
2728
2829
- name: Verify executables
2930
run: |
3031
# Check that executables were created
31-
ls -la conquer conqrun
32-
file conquer conqrun
32+
cd gpl-release
33+
ls -la conquer conqrun conqsort conqps
34+
file conquer conqrun conqsort conqps
3335
3436
- name: Basic functionality test
3537
run: |
3638
# Test that executables can run (help/version)
37-
./conquer -h || echo "conquer help test completed"
38-
./conqrun -h || echo "conqrun help test completed"
39+
./gpl-release/conquer -h || echo "conquer help test completed"
40+
./gpl-release/conqrun -h || echo "conqrun help test completed"
3941
4042
package-apk:
4143
name: Build APK Package (Alpine/Melange)
@@ -117,7 +119,7 @@ jobs:
117119
dpkg-deb --contents "$DEB_FILE" | head -20
118120
fi
119121
120-
- name: Upload DEB artifacts
122+
- name: Upload DEB atrifacts
121123
uses: actions/upload-artifact@v4
122124
if: github.ref == 'refs/heads/master'
123125
with:

README.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,6 @@
22

33
**Conquer** is the classic multi-player strategy game originally created by Edward M. Barlow and Adam Bryant in the late 1980s. This repository preserves both the historical distribution and provides a modern GPL-licensed version for continued development.
44

5-
## 🗺️ Special Recognition: Richard Caley's Map Utility
6-
7-
This repository includes a significant historical contribution: **Richard Caley's map drawing utility** from 1989. Richard Caley, a researcher at the University of Edinburgh's Centre for Speech Technology Research and contributor to the Festival Speech Synthesis System, created a bitmap visualization tool for Conquer game worlds.
8-
9-
His work represents an early example of game data visualization, created with the generous spirit typical of the late 1980s Unix computing community. Richard wrote: *"You may copy, distribute, modify or do what you will with this code"* - embodying the collaborative ethos that shaped early computer gaming.
10-
11-
**📖 Learn more about Richard Caley's contributions**: See [`richard-caley-utilities/`](richard-caley-utilities/) for detailed biographical information, technical context, and links to his archived research and personal materials.
12-
13-
*Richard Caley passed away in 2006. This code is preserved in his memory and as a testament to the early Unix gaming community's collaborative spirit.*
14-
155
## Relicensing Achievement
166

177
This repository represents a successful **15-year relicensing effort** (2006-2025) that transformed Conquer from a restrictively licensed game into a modern GPL v3 project. All original copyright holders provided explicit written permission:
@@ -61,6 +51,16 @@ This repository uses a dual-licensing approach to balance historical preservatio
6151
- **[`LICENSES/`](LICENSES/)** - All license texts for REUSE compliance
6252
- **[`LICENSE-NOTICE.md`](LICENSE-NOTICE.md)** - Comprehensive licensing framework explanation
6353

54+
## 🗺️ Special Recognition: Richard Caley's Map Utility
55+
56+
This repository includes a significant historical contribution: **Richard Caley's map drawing utility** from 1989. Richard Caley, a researcher at the University of Edinburgh's Centre for Speech Technology Research and contributor to the Festival Speech Synthesis System, created a bitmap visualization tool for Conquer game worlds.
57+
58+
His work represents an early example of game data visualization, created with the generous spirit typical of the late 1980s Unix computing community. Richard wrote: *"You may copy, distribute, modify or do what you will with this code"* - embodying the collaborative ethos that shaped early computer gaming.
59+
60+
**📖 Learn more about Richard Caley's contributions**: See [`richard-caley-utilities/`](richard-caley-utilities/) for detailed biographical information, technical context, and links to his archived research and personal materials.
61+
62+
*Richard Caley passed away in 2006. This code is preserved in his memory and as a testament to the early Unix gaming community's collaborative spirit.*
63+
6464
## Quick Start
6565

6666
### Playing the Game
@@ -138,4 +138,4 @@ The generous code-sharing philosophy of contributors like Richard Caley helped e
138138

139139
**🎮 Ready to conquer?** Start with [`gpl-release/`](gpl-release/) for the modern experience, or explore [`original/`](original/) for historical gaming archaeology.
140140

141-
**📖 Learn about the people behind the code:** Visit [`richard-caley-utilities/`](richard-caley-utilities/) to discover the fascinating individuals who created this classic game.
141+
**📖 Learn about the people behind the code:** Visit [`richard-caley-utilities/`](richard-caley-utilities/) to discover the fascinating individuals who created this classic game.

packaging/melange/melange.yaml

Lines changed: 0 additions & 123 deletions
This file was deleted.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
package:
2+
name: conquer
3+
version: PLACEHOLDER_VERSION
4+
epoch: 0
5+
description: "Classic ncurses multiplayer fantasy war game"
6+
url: https://github.com/vejeta/conquer
7+
copyright:
8+
- license: GPL-3.0-or-later
9+
10+
dependencies:
11+
runtime:
12+
- ncurses
13+
- ncurses-terminfo-base
14+
15+
environment:
16+
contents:
17+
repositories:
18+
- https://dl-cdn.alpinelinux.org/alpine/edge/main
19+
- https://dl-cdn.alpinelinux.org/alpine/edge/community
20+
packages:
21+
- build-base
22+
- ncurses-dev
23+
- make
24+
- sed
25+
- coreutils
26+
- pkgconfig
27+
- gcc
28+
- libc-dev
29+
- alpine-baselayout-data
30+
- busybox
31+
32+
pipeline:
33+
- uses: fetch
34+
with:
35+
uri: file:///staged/conquer.tar.gz
36+
extract: true
37+
expected-sha256: PLACEHOLDER_SHA256
38+
39+
- runs: |
40+
echo "🗡️ Entering the battlefield… compiling Conquer!"
41+
sed -i 's|CDEFS = -DDEFAULTDIR=\\"$(DEFAULT)\\"|CDEFS = -DDEFAULTDIR=\\"/usr/lib/conquer\\"|g' Makefile
42+
make all OPTFLG="-std=gnu99 -D_GNU_SOURCE"
43+
44+
mkdir -p ${{targets.destdir}}/usr/bin
45+
mkdir -p ${{targets.destdir}}/usr/lib/conquer
46+
mkdir -p ${{targets.destdir}}/usr/share/licenses/conquer
47+
48+
install -m 755 conquer conqrun ${{targets.destdir}}/usr/bin/
49+
install -m 644 nations rules ${{targets.destdir}}/usr/lib/conquer/
50+
51+
for exe in conqsort conqps; do
52+
if [ -x "$exe" ]; then
53+
install -m 755 "$exe" ${{targets.destdir}}/usr/bin/
54+
fi
55+
done
56+
57+
for i in 0 1 2 3 4 5; do
58+
[ -f "help$i" ] && install -m 644 "help$i" ${{targets.destdir}}/usr/lib/conquer/
59+
done
60+
61+
# Install game data files directly
62+
install -m 644 nations ${{targets.destdir}}/usr/lib/conquer/nations
63+
install -m 644 rules ${{targets.destdir}}/usr/lib/conquer/rules
64+
65+
# Install license
66+
if [ -f "COPYING" ]; then
67+
install -m 644 COPYING ${{targets.destdir}}/usr/share/licenses/conquer/COPYING
68+
fi
69+
70+
71+
echo "⚔️ Conquer compilation complete!"
72+
73+
- uses: strip

0 commit comments

Comments
 (0)