debian swirl logo

Back to the packages list mathwar

#!/usr/bin/make -f
# -*- mode: makefile; coding: utf-8 -*-
# Copyright © 2003 Jonas Smedegaard 

include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/patchsys-quilt.mk

DEB_CONFIGURE_EXTRA_FLAGS = --bindir=/usr/games/
DEB_INSTALL_MANPAGES_mathwar = debian/mathwar.6

makebuilddir/mathwar::
		cp /usr/share/misc/config.guess $(CURDIR)
		cp /usr/share/misc/config.sub $(CURDIR)

build/mathwar::
		mogrify -format xpm -geometry 32x32 pixmaps/mathwar.png

clean::
		rm -f pixmaps/mathwar.xpm
		rm -f config.sub config.guess

install/mathwar::
		cp pixmaps/mathwar.xpm debian/mathwar/usr/share/pixmaps/mathwar.xpm
		mkdir debian/mathwar/usr/share/applications/
		mv debian/mathwar/usr/share/gnome/apps/Games/MathWar.desktop \
			debian/mathwar/usr/share/applications/MathWar.desktop
		rm -rf debian/mathwar/usr/share/gnome

Builds:

mathwar
a flash card game designed to teach simple maths