From 4952f7bceee4a02c5922cc67a29a59d975cda1f7 Mon Sep 17 00:00:00 2001 From: David P Date: Fri, 6 Apr 2018 10:47:14 -0300 Subject: upgpkg: pcr/pacman4console 1.3-1 --- pcr/pacman4console/PKGBUILD | 22 ++--- pcr/pacman4console/pacman4console | 24 ------ pcr/pacman4console/pacman4console.6 | 24 ++++++ pcr/pacman4console/pacman4console.patch | 143 ++++++++++---------------------- pcr/pacman4console/pacman4consoleedit | 47 ----------- pcr/pacman4console/pacman4consoleedit.1 | 47 +++++++++++ 6 files changed, 124 insertions(+), 183 deletions(-) delete mode 100644 pcr/pacman4console/pacman4console create mode 100644 pcr/pacman4console/pacman4console.6 delete mode 100644 pcr/pacman4console/pacman4consoleedit create mode 100644 pcr/pacman4console/pacman4consoleedit.1 diff --git a/pcr/pacman4console/PKGBUILD b/pcr/pacman4console/PKGBUILD index b318d81f0..5be795080 100644 --- a/pcr/pacman4console/PKGBUILD +++ b/pcr/pacman4console/PKGBUILD @@ -1,20 +1,20 @@ +# Maintainer (AUR): Erus # Maintainer: David P. -# Contributor: Erus pkgname=pacman4console -pkgver=1.2 +pkgver=1.3 pkgrel=1 pkgdesc="A 9 level ncurses pacman game with editor, patched not to disturb our package manager and to have nice ghosts" -arch=('any') +arch=('armv7h' 'i686' 'x86_64') url="http://sites.google.com/site/doctormike/pacman.html" license=('GPL') depends=('ncurses') makedepends=() -source=('http://ftp.debian.org/debian/pool/main/p/pacman4console/pacman4console_1.2.orig.tar.gz' 'pacman4console.patch' 'pacman4console' 'pacman4consoleedit') -md5sums=('1568960898ad9cb66c77412b85cd7d86' - 'fdd2bd5b2d7f2a4afa5634146449288c' - 'b913fb9959f2988a41457c270eb0d3b3' - 'fc43203fcbc5b27872131ac6dfe85ddc') +source=("http://ftp.debian.org/debian/pool/main/p/pacman4console/${pkgname}_${pkgver}.orig.tar.gz" 'pacman4console.patch' 'pacman4console.6' 'pacman4consoleedit.1') +sha512sums=('dd62396819936150bb997e6374e065241f6daa3ddb0edf2cbae91fbab88d55ebdecbe0d1d62c1355c7c59f9b4e43e79ba17fd5c2fa92d4953fca49b55f1312ff' + '8ac5650b429e5e8e7585f17000670d235bbb75b9baffba5c9450dce022db76644344fdfa73e28202c6dbc1858e60502b3d04098cbd7f5dfb731d76b0e1f7cd6e' + 'f2f4d3201eddb601dc40837da6fd9ecbba8d59f9d447bc51a5cf38a5bea3d28b436e1bbedf0200db35b832016d5d4b3cdc43fcb25e3446d104b3aab5b5ec9394' + 'f8f68a741faa5e802c103eabd6344c9906816110d31155a482058d298a5d859aedb2b87f403796cdbee7604321a8cf2566326f15901db0d6df47b88af8be7185') build() { cd pacman-$pkgver/ @@ -24,8 +24,8 @@ build() { package() { cd pacman-$pkgver/ - make DESTDIR=$pkgdir install || return 1 + make DESTDIR=$pkgdir install install -D -m644 COPYING $pkgdir/usr/share/licenses/$pkgname/LICENSE - install -D -m644 ../pacman4console $pkgdir/usr/share/man/man6/pacman4console.6 - install -D -m644 ../pacman4consoleedit $pkgdir/usr/share/man/man1/pacman4consoleedit.1 + install -D -m644 ../pacman4console.6 $pkgdir/usr/share/man/man6/pacman4console.6 + install -D -m644 ../pacman4consoleedit.1 $pkgdir/usr/share/man/man1/pacman4consoleedit.1 } diff --git a/pcr/pacman4console/pacman4console b/pcr/pacman4console/pacman4console deleted file mode 100644 index f4f52abb5..000000000 --- a/pcr/pacman4console/pacman4console +++ /dev/null @@ -1,24 +0,0 @@ -.TH PACMAN4CONSOLE 6 "december 8, 2006" -.SH NAME -pacman4console \- a console based pacman game -.SH SYNOPSIS -.B pacman4console -.RB [ -.I OPTION -.RB ] -.SH DESCRIPTION -This manual page documents briefly the -.B pacman4console. -.PP -\fBpacman4console\fP is an ASCII character based game. This game haves nine levels. -.SH OPTION -.B n -- Start level n -.SH SEE ALSO -pacman4consoleedit(1) -.SH AUTHOR -pacman4console was written by Michael Billars (aka Dr. Mike) and is available at http://doctormike.googlepages.com/pacman.html. -.PP -.nh -.ad l -This manual page was written by Joao Eriberto Mota Filho , for the Debian project (but may be used by others). diff --git a/pcr/pacman4console/pacman4console.6 b/pcr/pacman4console/pacman4console.6 new file mode 100644 index 000000000..f4f52abb5 --- /dev/null +++ b/pcr/pacman4console/pacman4console.6 @@ -0,0 +1,24 @@ +.TH PACMAN4CONSOLE 6 "december 8, 2006" +.SH NAME +pacman4console \- a console based pacman game +.SH SYNOPSIS +.B pacman4console +.RB [ +.I OPTION +.RB ] +.SH DESCRIPTION +This manual page documents briefly the +.B pacman4console. +.PP +\fBpacman4console\fP is an ASCII character based game. This game haves nine levels. +.SH OPTION +.B n +- Start level n +.SH SEE ALSO +pacman4consoleedit(1) +.SH AUTHOR +pacman4console was written by Michael Billars (aka Dr. Mike) and is available at http://doctormike.googlepages.com/pacman.html. +.PP +.nh +.ad l +This manual page was written by Joao Eriberto Mota Filho , for the Debian project (but may be used by others). diff --git a/pcr/pacman4console/pacman4console.patch b/pcr/pacman4console/pacman4console.patch index 0889affaf..010324ac9 100644 --- a/pcr/pacman4console/pacman4console.patch +++ b/pcr/pacman4console/pacman4console.patch @@ -1,107 +1,48 @@ ---- Makefile 2009-12-22 13:23:44.086853403 +0100 -+++ Makefile.new 2009-12-22 13:26:21.380175264 +0100 -@@ -1,17 +1,17 @@ +--- a/Makefile 2017-10-24 13:38:53.179171635 +0200 ++++ b/Makefile 2017-10-24 13:40:58.242422264 +0200 +@@ -1,20 +1,21 @@ +-prefix=/usr/local ++prefix=/usr + bindir=$(prefix)/bin + datarootdir=$(prefix)/share + all: -- gcc -lncurses pacman.c -o pacman -- gcc -lncurses pacmanedit.c -o pacmanedit -+ gcc -lncurses pacman.c -o pacman4console -+ gcc -lncurses pacmanedit.c -o pacman4consoleedit +- gcc pacman.c -o pacman -DDATAROOTDIR=\"$(datarootdir)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses +- gcc pacmanedit.c -o pacmanedit -DDATAROOTDIR=\"$(datarootdir)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses ++ gcc pacman.c -o pacman4console -DDATAROOTDIR=\"$(datarootdir)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses -ltinfo ++ gcc pacmanedit.c -o pacman4consoleedit -DDATAROOTDIR=\"$(datarootdir)\" $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -lncurses -ltinfo - install: all -- cp pacman /usr/local/bin -- cp pacmanedit /usr/local/bin -- mkdir -p /usr/local/share/pacman -- cp -fR Levels/ /usr/local/share/pacman/ -- chown root:games /usr/local/bin/pacman -- chown root:games /usr/local/share/pacman -R -- chmod 750 /usr/local/bin/pacman -- chmod 750 /usr/local/bin/pacmanedit -- chmod 750 /usr/local/share/pacman/ -R -+ install -D pacman4console $(DESTDIR)/usr/bin/pacman4console -+ install -D pacman4consoleedit $(DESTDIR)/usr/bin/pacman4consoleedit -+ mkdir -p $(DESTDIR)/usr/share/pacman4console -+ cp -fR Levels/ $(DESTDIR)/usr/share/pacman4console/ -+ chown root:games $(DESTDIR)/usr/bin/pacman4console -+ chown root:games $(DESTDIR)/usr/share/pacman4console -R -+ chmod 755 $(DESTDIR)/usr/bin/pacman4console -+ chmod 755 $(DESTDIR)/usr/bin/pacman4consoleedit -+ chmod 755 $(DESTDIR)/usr/share/pacman4console/ -R + install: all + mkdir -p $(DESTDIR)$(bindir) +- mkdir -p $(DESTDIR)$(datarootdir)/pacman +- cp -fR Levels/ $(DESTDIR)$(datarootdir)/pacman/ +- -chown root:games $(DESTDIR)$(bindir)/pacman +- -chown root:games $(DESTDIR)$(datarootdir)/pacman -R +- chmod 750 $(DESTDIR)$(bindir)/pacman +- chmod 750 $(DESTDIR)$(bindir)/pacmanedit +- chmod 750 $(DESTDIR)$(datarootdir)/pacman/ -R ++ cp -f pacman4console pacman4consoleedit $(DESTDIR)$(bindir)/ ++ mkdir -p $(DESTDIR)$(datarootdir)/pacman4console ++ cp -fR Levels/ $(DESTDIR)$(datarootdir)/pacman4console/ ++ -chown root:games $(DESTDIR)$(bindir)/pacman4console ++ -chown root:games $(DESTDIR)$(datarootdir)/pacman4console -R ++ chmod 755 $(DESTDIR)$(bindir)/pacman4console ++ chmod 755 $(DESTDIR)$(bindir)/pacman4consoleedit ++ chmod 755 $(DESTDIR)$(datarootdir)/pacman4console -R uninstall: - rm -f /usr/local/bin/pacman ---- pacman.c 2009-12-22 13:28:23.423485413 +0100 -+++ pacman.c.new 2009-12-22 13:31:01.556844974 +0100 -@@ -196,10 +196,10 @@ - - //Display ghosts - if(Invincible == 0) { -- wattron(win, COLOR_PAIR(Ghost1)); mvwaddch(win, Loc[0][0], Loc[0][1], '&'); -- wattron(win, COLOR_PAIR(Ghost2)); mvwaddch(win, Loc[1][0], Loc[1][1], '&'); -- wattron(win, COLOR_PAIR(Ghost3)); mvwaddch(win, Loc[2][0], Loc[2][1], '&'); -- wattron(win, COLOR_PAIR(Ghost4)); mvwaddch(win, Loc[3][0], Loc[3][1], '&'); -+ wattron(win, COLOR_PAIR(Ghost1)); mvwaddch(win, Loc[0][0], Loc[0][1], 'A'); -+ wattron(win, COLOR_PAIR(Ghost2)); mvwaddch(win, Loc[1][0], Loc[1][1], 'A'); -+ wattron(win, COLOR_PAIR(Ghost3)); mvwaddch(win, Loc[2][0], Loc[2][1], 'A'); -+ wattron(win, COLOR_PAIR(Ghost4)); mvwaddch(win, Loc[3][0], Loc[3][1], 'A'); - } - - //OR display vulnerable ghosts -@@ -323,10 +323,10 @@ - if(getch()!=ERR) return; - wattron(win, COLOR_PAIR(Pellet)); mvwprintw(win, 13, 23, "*"); - wattron(win, COLOR_PAIR(Pacman)); mvwprintw(win, 13, a, " C"); -- wattron(win, COLOR_PAIR(Ghost1)); mvwprintw(win, 13, a-3, " &"); -- wattron(win, COLOR_PAIR(Ghost3)); mvwprintw(win, 13, a-5, " &"); -- wattron(win, COLOR_PAIR(Ghost2)); mvwprintw(win, 13, a-7, " &"); -- wattron(win, COLOR_PAIR(Ghost4)); mvwprintw(win, 13, a-9, " &"); -+ wattron(win, COLOR_PAIR(Ghost1)); mvwprintw(win, 13, a-3, " A"); -+ wattron(win, COLOR_PAIR(Ghost3)); mvwprintw(win, 13, a-5, " A"); -+ wattron(win, COLOR_PAIR(Ghost2)); mvwprintw(win, 13, a-7, " A"); -+ wattron(win, COLOR_PAIR(Ghost4)); mvwprintw(win, 13, a-9, " A"); - wrefresh(win); - usleep(100000); - } -@@ -341,7 +341,7 @@ - //Make ghosts half as fast - if(a%2) b--; - -- wattron(win, COLOR_PAIR(BlueGhost)); mvwprintw(win, 13, b-9, "& & & &"); -+ wattron(win, COLOR_PAIR(BlueGhost)); mvwprintw(win, 13, b-9, "A A A A"); - wattron(win, COLOR_PAIR(Pacman)); mvwprintw(win, 13, b-9+1, " "); - wattron(win, COLOR_PAIR(Pacman)); mvwprintw(win, 13, b-9+3, " "); - wattron(win, COLOR_PAIR(Pacman)); mvwprintw(win, 13, b-9+5, " "); ---- pacman.h 2009-12-22 13:28:36.600151049 +0100 -+++ pacman.h.new 2009-12-22 13:31:14.193571255 +0100 -@@ -1,5 +1,5 @@ + rm -f $(DESTDIR)$(bindir)/pacman + +--- a/pacman.h 2017-10-24 12:57:25.090817016 +0200 ++++ b/pacman.h 2017-10-24 13:00:11.154040534 +0200 +@@ -1,7 +1,7 @@ // Some variables that you may want to change --char LevelFile[50] = "/usr/local/share/pacman/Levels/level__.dat"; //Locations of default levels -+char LevelFile[50] = "/usr/share/pacman4console/Levels/level__.dat"; //Locations of default levels - int FreeLife = 1000; //Starting points for free life - int Points = 0; //Initial points - int Lives = 3; //Number of lives you start with ---- pacmanedit.c 2009-12-22 13:28:46.550158906 +0100 -+++ pacmanedit.c.new 2009-12-22 13:33:44.830134771 +0100 -@@ -89,10 +89,10 @@ - case 2: chr = '.'; attr = A_NORMAL; wattron(win, COLOR_PAIR(Pellet)); break; - case 3: chr = '*'; attr = A_BOLD; wattron(win, COLOR_PAIR(PowerUp)); break; - case 4: chr = ' '; attr = A_NORMAL; wattron(win, COLOR_PAIR(GhostWall)); break; -- case 5: chr = '&'; attr = A_NORMAL; wattron(win, COLOR_PAIR(Ghost1)); break; -- case 6: chr = '&'; attr = A_NORMAL; wattron(win, COLOR_PAIR(Ghost2)); break; -- case 7: chr = '&'; attr = A_NORMAL; wattron(win, COLOR_PAIR(Ghost3)); break; -- case 8: chr = '&'; attr = A_NORMAL; wattron(win, COLOR_PAIR(Ghost4)); break; -+ case 5: chr = 'A'; attr = A_NORMAL; wattron(win, COLOR_PAIR(Ghost1)); break; -+ case 6: chr = 'A'; attr = A_NORMAL; wattron(win, COLOR_PAIR(Ghost2)); break; -+ case 7: chr = 'A'; attr = A_NORMAL; wattron(win, COLOR_PAIR(Ghost3)); break; -+ case 8: chr = 'A'; attr = A_NORMAL; wattron(win, COLOR_PAIR(Ghost4)); break; - case 9: chr = 'C'; attr = A_NORMAL; wattron(win, COLOR_PAIR(Pacman)); break; - } - mvwaddch(win, a, b, chr | attr); -@@ -113,7 +113,7 @@ - wattron(status, COLOR_PAIR(Pellet)); mvwaddch(status, 1, 19, '.'); - wattron(status, COLOR_PAIR(PowerUp)); mvwaddch(status, 1, 26 , '*' | A_BOLD); - wattron(status, COLOR_PAIR(GhostWall)); mvwaddch(status, 2, 3, ' '); -- wattron(status, COLOR_PAIR(Ghost1)); mvwaddch(status, 2, 12, '&'); -+ wattron(status, COLOR_PAIR(Ghost1)); mvwaddch(status, 2, 12, 'A'); - wattron(status, COLOR_PAIR(Pacman)); mvwaddch(status, 2, 19, 'C'); - wrefresh(status); + #ifndef DATAROOTDIR +-# define DATAROOTDIR "/usr/local/share" ++# define DATAROOTDIR "/usr/share/pacman4console" + #endif +-#define LEVELS_FILE DATAROOTDIR "/pacman/Levels/level__.dat" ++#define LEVELS_FILE DATAROOTDIR "/pacman4console/Levels/level__.dat" + char LevelFile[] = LEVELS_FILE; //Locations of default levels + diff --git a/pcr/pacman4console/pacman4consoleedit b/pcr/pacman4console/pacman4consoleedit deleted file mode 100644 index 33d95ad6b..000000000 --- a/pcr/pacman4console/pacman4consoleedit +++ /dev/null @@ -1,47 +0,0 @@ -.TH PACMAN4CONSOLEEDIT 1 "january 4, 2007" -.SH NAME -pacman4consoleedit \- an editor to make pacman4console mazes -.SH SYNOPSIS -.B pacman4consoleedit -file -.SH DESCRIPTION -This manual page documents briefly the -.B pacman4consoleedit. -.PP -\fBpacman4consoleedit\fP is an editor used to make new pacman4console mazes. -.SH KEYS -0 Insert space (way) -.br -1 Insert wall -.br -2 Insert pill -.br -3 Insert vitamin -.br -4 Insert an exit for fantasms -.br -5 Change position of the red fantasm -.br -6 Change position of the cyan fantasm -.br -7 Change position of the magenta fantasm -.br -8 Change position of the orange fantasm -.br -9 Change position of the Pacman -.br -f Change all spaces to pills -.br -c Change all pills to spaces -.br -q Save and exit -.SH MAZE FILE LOCATION -The maze files are localized at /usr/share/pacman4console/Levels. -.SH SEE ALSO -pacman4console(6) -.SH AUTHOR -pacman4console was written by Michael Billars (aka Dr. Mike) and is available at http://doctormike.googlepages.com/pacman.html. -.PP -.nh -.ad l -This manual page was written by Joao Eriberto Mota Filho , for the Debian project (but may be used by others). diff --git a/pcr/pacman4console/pacman4consoleedit.1 b/pcr/pacman4console/pacman4consoleedit.1 new file mode 100644 index 000000000..33d95ad6b --- /dev/null +++ b/pcr/pacman4console/pacman4consoleedit.1 @@ -0,0 +1,47 @@ +.TH PACMAN4CONSOLEEDIT 1 "january 4, 2007" +.SH NAME +pacman4consoleedit \- an editor to make pacman4console mazes +.SH SYNOPSIS +.B pacman4consoleedit +file +.SH DESCRIPTION +This manual page documents briefly the +.B pacman4consoleedit. +.PP +\fBpacman4consoleedit\fP is an editor used to make new pacman4console mazes. +.SH KEYS +0 Insert space (way) +.br +1 Insert wall +.br +2 Insert pill +.br +3 Insert vitamin +.br +4 Insert an exit for fantasms +.br +5 Change position of the red fantasm +.br +6 Change position of the cyan fantasm +.br +7 Change position of the magenta fantasm +.br +8 Change position of the orange fantasm +.br +9 Change position of the Pacman +.br +f Change all spaces to pills +.br +c Change all pills to spaces +.br +q Save and exit +.SH MAZE FILE LOCATION +The maze files are localized at /usr/share/pacman4console/Levels. +.SH SEE ALSO +pacman4console(6) +.SH AUTHOR +pacman4console was written by Michael Billars (aka Dr. Mike) and is available at http://doctormike.googlepages.com/pacman.html. +.PP +.nh +.ad l +This manual page was written by Joao Eriberto Mota Filho , for the Debian project (but may be used by others). -- cgit v1.2.3