@@ -0,0 +1,58 @@
1+{ lib
2+, stdenv
3+, fetchurl
4+, autoconf
5+, automake
6+, SDL
7+, SDL_mixer
8+, libpng
9+}:
10+
11+stdenv.mkDerivation rec {
12+ pname = "powermanga";
13+ version = "0.93.1";
14+
15+ src = fetchurl {
16+ url = "https://linux.tlk.fr/games/Powermanga/download/powermanga-${version}.tgz";
17+ sha256 = "sha256-2nU/zoOQWm2z/Y6mXHDFfWYjYshsQp1saVRBcUT5Q+g=";
18+ };
19+
20+ nativeBuildInputs = [
21+ autoconf
22+ automake
23+ ];
24+
25+ buildInputs = [
26+ SDL
27+ SDL_mixer
28+ libpng
29+ ];
30+
31+ preConfigure = ''
32+ ./bootstrap
33+ '';
34+
35+ installFlags = [
36+ # Default is $(out)/games
37+ "gamesdir=$(out)/bin"
38+ # We set the scoredir to $TMPDIR.
39+ # Otherwise it will try to write in /var/games at install time
40+ "scoredir=$(TMPDIR)"
41+ ];
42+
43+ meta = with lib; {
44+ homepage = "https://linux.tlk.fr/games/Powermanga/";
45+ downloadPage = "https://linux.tlk.fr/games/Powermanga/download/";
46+ description = "An arcade 2D shoot-em-up game";
47+ longDescription = ''
48+ Powermanga is an arcade 2D shoot-em-up game with 41 levels and more than
49+ 200 sprites. It runs in 320x200 or 640x400 pixels, with Window mode or
50+ full screen and support for 8, 15, 16, 24, and 32 bpp. As you go through
51+ the levels, you will destroy enemy spaceships and bosses, collect gems to
52+ power up your ship and get special powers, helpers and weapons.
53+ '';
54+ license = licenses.gpl3Plus;
55+ maintainers = with maintainers; [ fgaz ];
56+ platforms = platforms.all;
57+ };
58+}