diff options
Diffstat (limited to 'community/xpacman/PKGBUILD')
-rw-r--r-- | community/xpacman/PKGBUILD | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/community/xpacman/PKGBUILD b/community/xpacman/PKGBUILD new file mode 100644 index 000000000..ccefd846b --- /dev/null +++ b/community/xpacman/PKGBUILD @@ -0,0 +1,38 @@ +# $Id: PKGBUILD 17716 2010-05-24 20:47:33Z spupykin $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> + +pkgname=xpacman +pkgver=0.11 +pkgrel=5 +pkgdesc="X pacman game (use z x / ' q keys)" +arch=(i686 x86_64) +url="http://www.ibiblio.org/pub/X11/contrib/games/" +license=('custom') +depends=(libx11) +source=(http://www.ibiblio.org/pub/X11/contrib/games/xpacman.tar.gz \ + http://www.ibiblio.org/pub/X11/contrib/games/xpacman.README) +md5sums=('b0ad824c4c0ea5c4d1f8f3e7b31f32f9' + '620c226d6d91461ac0d91e88655c9cbf') + +build() { + cd $srcdir/$pkgname + + patch -Np1 <<EOF +diff -wbBur xpacman-0.11.orig/xpacman.c xpacman-0.11.orig.my/xpacman.c +--- xpacman-0.11.orig/xpacman.c 1996-08-14 16:08:12.000000000 +0400 ++++ xpacman-0.11.orig.my/xpacman.c 2007-07-03 18:59:05.000000000 +0400 +@@ -85,7 +85,7 @@ + void update_image_from_map(Window ,GC),update_image(Window, GC); + void setup_map_memory(void),free_memory(void),print_usage(void); + void reset_display_map(void),setup_maze(void); +-void maze_draw(int,int,int,int),draw_maze_point(int,int,enum mtype); ++void maze_draw(int,int,int,int),draw_maze_point(int,int,enum dtype); + void draw_maze_edges(void),draw_x_line(XImage *,int,int,int,int); + void setup_pill(XImage *),add_pills(int,int),setup_pacmen(void); + void setup_pacmanu(void),setup_pacman(XImage *),plot_pacman(Window,GC); +EOF + + gcc -o xpacman xpacman.c -lX11 && \ + install -D -m 0755 xpacman $pkgdir/usr/bin/xpacman && \ + install -D -m 0755 $srcdir/xpacman.README $pkgdir/usr/share/licenses/xpacman/README +} |