r7654 - in packages/trunk/scramble: . debian debian/patches

Peter Pentchev roam-guest at alioth.debian.org
Tue Jul 1 14:06:17 UTC 2008


Author: roam-guest
Date: 2008-07-01 14:06:16 +0000 (Tue, 01 Jul 2008)
New Revision: 7654

Added:
   packages/trunk/scramble/debian/
   packages/trunk/scramble/debian/README.Debian
   packages/trunk/scramble/debian/README.source
   packages/trunk/scramble/debian/changelog
   packages/trunk/scramble/debian/compat
   packages/trunk/scramble/debian/control
   packages/trunk/scramble/debian/copyright
   packages/trunk/scramble/debian/menu
   packages/trunk/scramble/debian/patches/
   packages/trunk/scramble/debian/patches/00list
   packages/trunk/scramble/debian/patches/01_lang_c.dpatch
   packages/trunk/scramble/debian/patches/02_no_arial.dpatch
   packages/trunk/scramble/debian/patches/03_install_icon.dpatch
   packages/trunk/scramble/debian/rules
   packages/trunk/scramble/debian/watch
Log:
[svn-inject] Applying Debian modifications to trunk


Property changes on: packages/trunk/scramble/debian
___________________________________________________________________
Name: mergeWithUpstream
   + 1

Added: packages/trunk/scramble/debian/README.Debian
===================================================================
--- packages/trunk/scramble/debian/README.Debian	                        (rev 0)
+++ packages/trunk/scramble/debian/README.Debian	2008-07-01 14:06:16 UTC (rev 7654)
@@ -0,0 +1,7 @@
+scramble for Debian
+-------------------
+
+The Debian package of Scramble subtitutes the Liberation Sans font
+for the non-free Arial font used in the upstream distribution.
+
+ -- Peter Pentchev <roam at ringlet.net>  Tue, 01 Jul 2008 16:36:21 +0300

Added: packages/trunk/scramble/debian/README.source
===================================================================
--- packages/trunk/scramble/debian/README.source	                        (rev 0)
+++ packages/trunk/scramble/debian/README.source	2008-07-01 14:06:16 UTC (rev 7654)
@@ -0,0 +1,17 @@
+The scramble package uses dpatch to maintain local changes to
+the scramble distribution.  The Debian-specific patches are maintained
+in the debian/patches/ directory.
+
+To apply all the patches, preparing the source for building, use:
+  debian/rules patch
+
+To revert the patches, preparing to build a source package, use:
+  debian/rules unpatch
+
+You do not need to manually execute these targets when building
+the package; they are part of the debian/rules target chain.
+
+To edit the patches, use the dpatch-edit-patch(1) program.
+Do not forget to add new patches or remove obsolete ones from the list
+in the debian/patches/00list file - just adding and removing
+the patch files from the debian/patches/ directory may not be enough!

Added: packages/trunk/scramble/debian/changelog
===================================================================
--- packages/trunk/scramble/debian/changelog	                        (rev 0)
+++ packages/trunk/scramble/debian/changelog	2008-07-01 14:06:16 UTC (rev 7654)
@@ -0,0 +1,9 @@
+scramble (0.9.5.dfsg.1-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #484631)
+  * TODO
+    - inject scramble into the pkg-games repository
+    - add the Vcs-Svn and Vcs-Browser fields after injecting scramble into
+      the pkg-games repository
+
+ -- Peter Pentchev <roam at ringlet.net>  Tue, 01 Jul 2008 16:36:21 +0300

Added: packages/trunk/scramble/debian/compat
===================================================================
--- packages/trunk/scramble/debian/compat	                        (rev 0)
+++ packages/trunk/scramble/debian/compat	2008-07-01 14:06:16 UTC (rev 7654)
@@ -0,0 +1 @@
+7

Added: packages/trunk/scramble/debian/control
===================================================================
--- packages/trunk/scramble/debian/control	                        (rev 0)
+++ packages/trunk/scramble/debian/control	2008-07-01 14:06:16 UTC (rev 7654)
@@ -0,0 +1,17 @@
+Source: scramble
+Section: games
+Priority: optional
+Maintainer: Peter Pentchev <roam at ringlet.net>
+Build-Depends: dpatch, debhelper (>= 7), autotools-dev, libsdl1.2-dev, libsdl-image1.2-dev, libsdl-mixer1.2-dev, libsdl-ttf2.0-dev, netpbm
+Standards-Version: 3.8.0
+Homepage: http://www.shiftygames.com/scramble/
+
+Package: scramble
+Architecture: any
+Depends: ${shlibs:Depends}, ttf-liberation
+Description: Create as many words as you can from 6 letters
+ Test your word knowledge, and spelling skills, with this anagram game.
+ You are given six letters. From these 6 letters you are to create as
+ many words as you can. But, you have a time limit! You must create as
+ many words as you can before the time runs out. Additionally, you must
+ find the majority of the words OR find the six letter word to continue.

Added: packages/trunk/scramble/debian/copyright
===================================================================
--- packages/trunk/scramble/debian/copyright	                        (rev 0)
+++ packages/trunk/scramble/debian/copyright	2008-07-01 14:06:16 UTC (rev 7654)
@@ -0,0 +1,27 @@
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=143
+Upstream-Author: Shifty Games
+Packaged-By: Peter Pentchev <roam at ringlet.net>
+Packaged-Date: Tue, 01 Jul 2008 16:36:21 +0300
+Original-Source-Location: http://www.shiftygames.com/scramble/
+
+Files: *
+Copyright: Copyright (C) 2004 Tom Bradley
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ can be found in file "/usr/share/common-licenses/GPL".
+
+Files: debian/*
+Copyright: Copyright (c) 2008  Peter Pentchev
+License: GPL-2+
+ This package is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+ .
+ On Debian systems, the complete text of the GNU General Public License
+ can be found in file "/usr/share/common-licenses/GPL".

Added: packages/trunk/scramble/debian/menu
===================================================================
--- packages/trunk/scramble/debian/menu	                        (rev 0)
+++ packages/trunk/scramble/debian/menu	2008-07-01 14:06:16 UTC (rev 7654)
@@ -0,0 +1,5 @@
+?package(scramble):	needs="X11" \
+			section="Games/Puzzles" \
+			title="Scramble" \
+			command="/usr/games/scramble" \
+			icon="/usr/share/games/scramble/pics/sg_icon.xpm"

Added: packages/trunk/scramble/debian/patches/00list
===================================================================
--- packages/trunk/scramble/debian/patches/00list	                        (rev 0)
+++ packages/trunk/scramble/debian/patches/00list	2008-07-01 14:06:16 UTC (rev 7654)
@@ -0,0 +1,3 @@
+01_lang_c
+02_no_arial
+03_install_icon

Added: packages/trunk/scramble/debian/patches/01_lang_c.dpatch
===================================================================
--- packages/trunk/scramble/debian/patches/01_lang_c.dpatch	                        (rev 0)
+++ packages/trunk/scramble/debian/patches/01_lang_c.dpatch	2008-07-01 14:06:16 UTC (rev 7654)
@@ -0,0 +1,281 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 01_lang_c.dpatch by Peter Pentchev <roam at ringlet.net>
+##
+## DP: Rewrite the Scramble source in the C language :)
+## DP: - /* comments */ instead of // ones
+## DP: - declare variables before using them
+## DP: - no dynamic array declaration
+
+ at DPATCH@
+diff -urNad scramble-0.9.5~/src/ShiftyEngine.h scramble-0.9.5/src/ShiftyEngine.h
+--- scramble-0.9.5~/src/ShiftyEngine.h	2004-05-28 20:59:13.000000000 +0300
++++ scramble-0.9.5/src/ShiftyEngine.h	2008-06-27 17:33:39.000000000 +0300
+@@ -30,7 +30,7 @@
+ #include <stdio.h>
+ #include <ctype.h>
+ 
+-//#include "SDL_rotozoom.h"
++/*#include "SDL_rotozoom.h"*/
+ #include "SDL_image.h"
+ #include "SDL_mixer.h"
+ #include "SDL_ttf.h"
+@@ -64,13 +64,13 @@
+ 
+ int  SE_Init             ();
+ void SE_SetBackground       (char * filename);
+-//void SE_CheckEvents      ();
++/*void SE_CheckEvents      ();*/
+ void SE_GameLoop         ();
+ void SE_SetFont          (char * filename, int size);
+ void SE_SetName          (char * name);
+-//void SE_Print            (int x, int y, char * text, SDL_Color color, TTF_Font * font);
++/*void SE_Print            (int x, int y, char * text, SDL_Color color, TTF_Font * font);*/
+ void SE_RegisterButton   (char * name, int x, int y, int w, int h, int * cond, void (*handler)());
+-//void SE_UnregisterButton (char * name);
++/*void SE_UnregisterButton (char * name);*/
+ void SE_Quit             ();
+ void SE_Error            (char * fmt, ...);
+ void SE_AdjustSoundLevel ();
+diff -urNad scramble-0.9.5~/src/perm.c scramble-0.9.5/src/perm.c
+--- scramble-0.9.5~/src/perm.c	2005-03-27 01:45:59.000000000 +0200
++++ scramble-0.9.5/src/perm.c	2008-06-27 17:33:39.000000000 +0300
+@@ -149,11 +149,11 @@
+  ****************************************************/
+ static void resize()
+ {
++        struct node ** old_table = dictionary;
+ 	unsigned int a;
+         size_t old_size = sizeOfTable, i;
+         sizeOfTable *= 2;
+         numOfEntries = 0;
+-        struct node ** old_table = dictionary;
+ 
+         dictionary = (struct node **)malloc(sizeof(struct node *) * sizeOfTable);
+         if(!dictionary) {
+@@ -231,7 +231,7 @@
+ 		}
+ 
+ 		if(strlen(word) >= 3 && strlen(word) <= 6 && allalpha) {
+-			// change to lower cases
++			/* change to lower cases */
+ 			for(i = 0; i < strlen(word); i++)
+ 				word[i] = tolower(word[i]);
+ 			addToDictionary(word);
+@@ -278,16 +278,16 @@
+ static void permutation(char * a, int n)
+ {
+ 	unsigned int i, j;
+-	char p[n + 1], tmp;
++	char p[7], tmp;
+ 
+-	//printf("%s %d\n", a, n);
++	/* printf("%s %d\n", a, n); */
+ 	checkIfWord(a, n);
+ 
+ 	for(i = 0; i <= n; i++)
+ 		p[i] = i;
+ 
+ 	i = 1;
+-	//printf("loop\n");
++	/* printf("loop\n"); */
+ 	while(i < n) {
+ 		p[i]--;
+ 		j = i % 2 * p[i];
+@@ -296,14 +296,14 @@
+ 		a[j] = a[i]; 
+ 		a[i] = tmp;
+ 
+-		//printf("%s  %d\n", a, i);
++		/* printf("%s  %d\n", a, i); */
+ 		checkIfWord(a, n);
+ 		i = 1;
+ 		while (!p[i]) {
+ 			p[i] = i;
+-			i++; //compilier optimized these two lines into the error, broke into 2 lines
++			i++; /* compilier optimized these two lines into the error, broke into 2 lines */
+ 		}
+-		//printf("after = %d\n", i);
++		/* printf("after = %d\n", i); */
+ 	}
+ }
+ 
+diff -urNad scramble-0.9.5~/src/scramble.c scramble-0.9.5/src/scramble.c
+--- scramble-0.9.5~/src/scramble.c	2005-03-27 01:47:34.000000000 +0200
++++ scramble-0.9.5/src/scramble.c	2008-06-27 17:33:39.000000000 +0300
+@@ -94,7 +94,7 @@
+ 
+ /* Colors */
+ SDL_Color green     = {0,  160,  0,  255};
+-//SDL_Color green     = {10,  130,  30,  255};
++/*SDL_Color green     = {10,  130,  30,  255};*/
+ SDL_Color white     = {255, 255,  255, 255};
+ SDL_Color darkGreen = {30,  80,   30,  255};
+ SDL_Color blue      = {156, 236,  255, 255};
+@@ -136,7 +136,7 @@
+ 
+ char wordAttempt[6];
+ char dictionary[512];
+-char currentWordSetShow[500]; //list of all the words that can be made from these 6 letters
++char currentWordSetShow[500]; /* list of all the words that can be made from these 6 letters */
+ 
+ struct {
+ 	char name[16];
+@@ -290,14 +290,13 @@
+  ****************************************************/
+ void putLetter(char * ch, int s)
+ {
+-	if(!running)
+-		return;
+-
+ 	char ch2[2];
++	SDL_Rect dest;
+ 	ch2[0] = toupper(ch[0]);
+ 	ch2[1] = 0;
+ 
+-	SDL_Rect dest;
++	if(!running)
++		return;
+ 
+ 	s--;
+ 	
+@@ -313,11 +312,11 @@
+ 			letters[s].x1 = letters[s].x2;
+ 			letters[s].y1 = letters[s].y2;
+ 		}
+-		stateChanged = 1; //needs to draw again
++		stateChanged = 1; /* needs to draw again */
+ 	}
+ 
+ 	text = TTF_RenderText_Blended(font2, ch2, darkGreen);
+-	dest.x = letters[s].x1+3; dest.y = letters[s].y1+3; //+3 is shadow offset
++	dest.x = letters[s].x1+3; dest.y = letters[s].y1+3; /* +3 is shadow offset */
+ 	SDL_BlitSurface(text, 0, screen, &dest);
+ 	SDL_FreeSurface(text);
+ 
+@@ -417,7 +416,7 @@
+ 			x += (strlen(currentWordSet[i]) + 1) * 22;
+ 			j = 0;
+ 		}
+-		j++; //j == the row
++		j++; /* j == the row */
+ 			
+ 		wordBox(x, y + (j * 22), strlen(currentWordSet[i])); 
+ 		if(currentWordSetShow[i]) {
+@@ -597,7 +596,7 @@
+ 	
+ 	clear();
+ 
+-	// move letters from scratch into letters array
++	/* move letters from scratch into letters array */
+ 	letters[0].letter[0] = scratch[0];
+ 	letters[1].letter[0] = scratch[1];
+ 	letters[2].letter[0] = scratch[2];
+@@ -694,6 +693,8 @@
+ 
+ 	for(i = 0; i < numberCurrentWords; i++) {
+ 		if(strcmp(wordAttempt, currentWordSet[i]) == 0 && currentWordSetShow[i] == 0) {
++			double per;
++
+ 			currentWordSetShow[i] = 1;
+ 			playSound(hitSound);	
+ 
+@@ -706,7 +707,7 @@
+ 			stateChanged = 1;
+ 			redrawAll = 1;
+ 			wordsFound++;
+-			double per = ((double)wordsFound / (double)numberCurrentWords);
++			per = ((double)wordsFound / (double)numberCurrentWords);
+ 			if(per > percentage) {
+ 				nextLevel = 1;
+ 				if(nextLevel % 5 && percentage < .8)
+@@ -1100,13 +1101,13 @@
+ 		SDL_UpdateRect(screen, x, y, text->w + 10, text->h + 2);
+ 
+ 		/* Highscores are sorted by score, not by level */
+-		// Find score slot, if any
++		/* Find score slot, if any */
+ 		for(i = 9; i >= 0; i--) 
+ 			if(score >= highscore[i].score)
+ 				scoreLevel = i;
+ 		
+ 		if(scoreLevel >= 0) {
+-			// move down other scores
++			/* move down other scores */
+ 			for(i = 8; i >= scoreLevel; i--)
+ 				highscore[i+1] = highscore[i];
+ 			
+@@ -1127,9 +1128,10 @@
+  ****************************************************/
+ void letter(char c)
+ {
++	int i;
+ 	if(!running)
+ 		return;
+-	int i;
++
+ 	for(i = 0; i < 6; i++) {
+ 		if(c == letters[i].letter[0] && !letters[i].played) {
+ 			playSound(clickSound);
+@@ -1141,7 +1143,7 @@
+ 
+ /*****************************************************
+  ****************************************************/
+-inline void SE_CheckEvents()
++/*inline*/ void SE_CheckEvents()
+ {
+ 
+ 	SDL_Event event;
+@@ -1284,7 +1286,7 @@
+ 			}
+ 			
+ 
+-			// These are the 6 letters on the boards
++			/* These are the 6 letters on the boards */
+ 			else if(x > 44 && x < 140 && y > 422 && y < 481) {
+ 				playSound(clickSound);
+ 				moveLetter(1);
+@@ -1320,7 +1322,7 @@
+ 				break;
+ 			}
+ 			
+-			// for going over a button
++			/* for going over a button */
+ 			for(head = se_buttonList; head; head = head->next) {
+ 				if(x > head->x && x < (head->x + head->w) &&
+ 				   y > head->y && y < (head->y + head->h)) {
+@@ -1339,7 +1341,7 @@
+ 				}
+ 			}
+ 		
+-			// for coming out of a button
++			/* for coming out of a button */
+ 			for(head = se_buttonList; head; head = head->next) {
+ 				if(head->over == 1) {
+ 					head->over = 0;
+@@ -1436,7 +1438,7 @@
+ 		strcat(highscore[i].name, "Nobody"); highscore[i].score = 0; highscore[i].level = 0;
+ 	}
+ 
+-	// Create high scores file if it does not exist
++	/* Create high scores file if it does not exist */
+ 	home = getenv("HOME");
+ 	scorepath = (char*)malloc(strlen(home) + strlen(file) + 1);
+ 	strcpy(scorepath, home);
+diff -urNad scramble-0.9.5~/src/sound.c scramble-0.9.5/src/sound.c
+--- scramble-0.9.5~/src/sound.c	2004-05-28 20:59:13.000000000 +0300
++++ scramble-0.9.5/src/sound.c	2008-06-27 17:33:39.000000000 +0300
+@@ -46,12 +46,13 @@
+ Mix_Chunk * loadSound(const char * name)
+ {
+ 	Mix_Chunk * temp;
++	char * newname;
+ 	int len1 = strlen(sg_data_path), len2 = strlen(name);
+ 
+ 	if(disabled)
+ 		return NULL;
+ 
+-	char * newname = (char*)malloc(len1 + len2 + 1);
++	newname = (char*)malloc(len1 + len2 + 1);
+ 	if(newname == NULL) {
+ 		fprintf(stderr, "Out of memory!\n");
+ 		exit(1);


Property changes on: packages/trunk/scramble/debian/patches/01_lang_c.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/trunk/scramble/debian/patches/02_no_arial.dpatch
===================================================================
--- packages/trunk/scramble/debian/patches/02_no_arial.dpatch	                        (rev 0)
+++ packages/trunk/scramble/debian/patches/02_no_arial.dpatch	2008-07-01 14:06:16 UTC (rev 7654)
@@ -0,0 +1,19 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 02_no_arial.dpatch by Peter Pentchev <roam at ringlet.net>
+##
+## DP: Do not attempt to install the arial.ttf file that was removed
+## DP: as part of the DFSG repackaging.
+
+ at DPATCH@
+diff -urNad scramble-0.9.5.dfsg.1~/fonts/Makefile.in scramble-0.9.5.dfsg.1/fonts/Makefile.in
+--- scramble-0.9.5.dfsg.1~/fonts/Makefile.in	2008-07-01 15:31:15.000000000 +0300
++++ scramble-0.9.5.dfsg.1/fonts/Makefile.in	2008-07-01 15:32:33.000000000 +0300
+@@ -143,7 +143,7 @@
+ target_cpu = @target_cpu@
+ target_os = @target_os@
+ target_vendor = @target_vendor@
+-EXTRA_DIST = arial.ttf  keiserso.ttf
++EXTRA_DIST = keiserso.ttf
+ pkgdata_DATA = $(EXTRA_DIST)
+ all: all-am
+ 


Property changes on: packages/trunk/scramble/debian/patches/02_no_arial.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/trunk/scramble/debian/patches/03_install_icon.dpatch
===================================================================
--- packages/trunk/scramble/debian/patches/03_install_icon.dpatch	                        (rev 0)
+++ packages/trunk/scramble/debian/patches/03_install_icon.dpatch	2008-07-01 14:06:16 UTC (rev 7654)
@@ -0,0 +1,18 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## 03_install_icon.dpatch by Peter Pentchev <roam at ringlet.net>
+##
+## DP: Install the xpm icon into the pics/ directory, too.
+
+ at DPATCH@
+diff -urNad scramble-0.9.5.dfsg.1~/pics/Makefile.in scramble-0.9.5.dfsg.1/pics/Makefile.in
+--- scramble-0.9.5.dfsg.1~/pics/Makefile.in	2005-03-26 22:54:23.000000000 +0200
++++ scramble-0.9.5.dfsg.1/pics/Makefile.in	2008-07-01 16:23:45.000000000 +0300
+@@ -150,7 +150,7 @@
+ 	sound_low.png    \
+ 	sound_medium.png \
+ 	sound_high.png   \
+-	sg_icon.png
++	sg_icon.png sg_icon.xpm
+ 
+ pkgdata_DATA = $(EXTRA_DIST)
+ all: all-am


Property changes on: packages/trunk/scramble/debian/patches/03_install_icon.dpatch
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/trunk/scramble/debian/rules
===================================================================
--- packages/trunk/scramble/debian/rules	                        (rev 0)
+++ packages/trunk/scramble/debian/rules	2008-07-01 14:06:16 UTC (rev 7654)
@@ -0,0 +1,104 @@
+#!/usr/bin/make -f
+# Debhelper rules for scramble
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
+CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
+else
+CROSS= --build $(DEB_BUILD_GNU_TYPE)
+endif
+
+include /usr/share/dpatch/dpatch.make
+
+PKG_NAME=	$(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+PKG_VERSION=	$(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
+UP_VERSION=	$(shell dpkg-parsechangelog | \
+		awk '/^Version:/ {gsub(/\.dfsg.*/, "", $$2); print $$2}')
+DFSG=		$(shell dpkg-parsechangelog | \
+		awk '/^Version:/ {gsub(/.*.dfsg/, ".dfsg", $$2); gsub(/-.*/, "", $$2); print $$2}')
+ORIG_DIR=	${PKG_NAME}-${UP_VERSION}${DFSG}.orig
+ORIG_NAME=	${PKG_NAME}_${UP_VERSION}${DFSG}.orig
+UP_DIR=		../tarballs
+UP_SITE=	http://www.shiftygames.com/scramble/
+UP_DISTNAME=	${PKG_NAME}-${UP_VERSION}
+UP_TARBALL=	${UP_DISTNAME}.tar.gz
+RM_FILES=	fonts/arial.ttf
+
+get-orig-source:
+	@echo "up ${UP_TARBALL} site ${UP_SITE} orig ${ORIG_NAME}"
+	@mkdir -p "${UP_DIR}"
+	@if [ ! -f "${UP_DIR}/${UP_TARBALL}" ]; then \
+		echo "Fetching upstream tarball ${UP_DIR}/${UP_TARBALL}"; \
+		cd "${UP_DIR}"; \
+		wget -nv -c "${UP_SITE}${UP_TARBALL}"; \
+	else \
+		echo "Upstream tarball ${UP_DIR}/${UP_TARBALL} exists"; \
+	fi
+	rm -rf "${UP_DIR}/${UP_DISTNAME}" "${UP_DIR}/${ORIG_DIR}"
+	mkdir "${UP_DIR}/${UP_DISTNAME}"
+	tar -zxf "${UP_DIR}/${UP_TARBALL}" -C "${UP_DIR}"
+	cd "${UP_DIR}/${UP_DISTNAME}" && rm -rfv ${RM_FILES}
+	mv "${UP_DIR}/${UP_DISTNAME}" "${UP_DIR}/${ORIG_DIR}"
+	cd "${UP_DIR}" && tar -cf - "${ORIG_DIR}" | gzip -cn9 > "${ORIG_NAME}.tar.gz"
+	@echo "The repackaged source is at ${UP_DIR}/${ORIG_NAME}.tar.gz"
+
+config.status: ${DPATCH_STAMPFN} configure
+	dh_testdir
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+	cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+	cp -f /usr/share/misc/config.guess config.guess
+endif
+	./configure $(CROSS) --prefix=/usr --bindir=/usr/games --datadir=/usr/share/games --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs"
+
+build: build-stamp
+build-stamp:  config.status
+	dh_testdir
+	pngtopnm -background white -mix pics/sg_icon.png | pnmscale -width 32 | ppmtoxpm > pics/sg_icon.xpm
+	$(MAKE)
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp 
+	[ ! -f Makefile ] || $(MAKE) distclean
+	rm -f config.sub config.guess pics/sg_icon.xpm
+	$(MAKE) -f debian/rules unpatch
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	dh_clean -k 
+	dh_installdirs
+	$(MAKE) DESTDIR=$(CURDIR)/debian/scramble install
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs ChangeLog
+	dh_installdocs
+	dh_installmenu
+	dh_link usr/share/fonts/truetype/ttf-liberation/LiberationSans-Regular.ttf usr/share/games/scramble/fonts/arial.ttf
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install patch unpatch


Property changes on: packages/trunk/scramble/debian/rules
___________________________________________________________________
Name: svn:executable
   + *

Added: packages/trunk/scramble/debian/watch
===================================================================
--- packages/trunk/scramble/debian/watch	                        (rev 0)
+++ packages/trunk/scramble/debian/watch	2008-07-01 14:06:16 UTC (rev 7654)
@@ -0,0 +1,3 @@
+version=3
+opts="dversionmangle=s/\.dfsg\.[0-9]+//" \
+http://www.shiftygames.com/web2/index.php?module=game&name=Scramble http://www.shiftygames.com/scramble/scramble-(.*)\.tar\.gz




More information about the Pkg-games-commits mailing list