diff options
author | Bartłomiej Piotrowski | 2018-01-05 17:44:27 +0100 |
---|---|---|
committer | Bartłomiej Piotrowski | 2018-01-05 17:44:27 +0100 |
commit | 2a75413e2587de4c7a81200e524d4107655885f2 (patch) | |
tree | 125a2fbc390dad538331472e79712c788bcee854 | |
download | aur-2a75413e2587de4c7a81200e524d4107655885f2.tar.gz |
Import from official repositories
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4867e2fb0404 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = xpacman + pkgdesc = X pacman game (use z x / ' q keys) + pkgver = 0.11 + pkgrel = 7 + url = http://www.ibiblio.org/pub/X11/contrib/games/ + arch = x86_64 + license = custom + depends = libx11 + source = http://www.ibiblio.org/pub/X11/contrib/games/xpacman.tar.gz + source = http://www.ibiblio.org/pub/X11/contrib/games/xpacman.README + md5sums = b0ad824c4c0ea5c4d1f8f3e7b31f32f9 + md5sums = 620c226d6d91461ac0d91e88655c9cbf + +pkgname = xpacman + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..bec4c463649c --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# $Id: PKGBUILD 266875 2017-11-15 14:29:11Z foutrelis $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> + +pkgname=xpacman +pkgver=0.11 +pkgrel=7 +pkgdesc="X pacman game (use z x / ' q keys)" +arch=(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 +} + +package() { + cd "$srcdir"/$pkgname + install -D -m 0755 xpacman "$pkgdir"/usr/bin/xpacman + install -D -m 0755 "$srcdir"/xpacman.README "$pkgdir"/usr/share/licenses/xpacman/README +} |