[arch-commits] Commit in tetrinet/repos/community-x86_64 (4 files)
Felix Yan
felixonmars at archlinux.org
Thu Jun 7 06:04:35 UTC 2018
Date: Thursday, June 7, 2018 @ 06:04:34
Author: felixonmars
Revision: 341652
archrelease: copy trunk to community-x86_64
Added:
tetrinet/repos/community-x86_64/PKGBUILD
(from rev 341651, tetrinet/trunk/PKGBUILD)
tetrinet/repos/community-x86_64/tetrinet-build.patch
(from rev 341651, tetrinet/trunk/tetrinet-build.patch)
Deleted:
tetrinet/repos/community-x86_64/PKGBUILD
tetrinet/repos/community-x86_64/tetrinet-build.patch
----------------------+
PKGBUILD | 72 ++++++++++-----------
tetrinet-build.patch | 168 ++++++++++++++++++++++++-------------------------
2 files changed, 120 insertions(+), 120 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2018-06-07 06:04:12 UTC (rev 341651)
+++ PKGBUILD 2018-06-07 06:04:34 UTC (rev 341652)
@@ -1,36 +0,0 @@
-# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
-# Contributor: MCMic <come.bernigaud at laposte.net>
-
-pkgname=tetrinet
-pkgver=0.11
-pkgrel=7
-pkgdesc="Multiplayer online Tetris game for up to six people"
-url="http://tetrinet.or.cz/"
-arch=('i686' 'x86_64')
-license=('Public domain')
-depends=('ncurses')
-makedepends=('pkgconfig')
-source=(${pkgname}-${pkgver}.tar.bz2::http://tetrinet.or.cz/download/${pkgname}-${pkgver}.tar.bz2
- tetrinet-build.patch)
-sha512sums=('8123a8c50a3c1b6326d3209272a60c8050afd2a9eb455814fd676d8c4de922f8b81a88df9e4825d1ff5e0c8b8a7ac46ebe9ce68994587f829e047a3d889880fa'
- '617f41f7c64b718f036c17262faf43eb47395fcbf3163560105257257e6acc73c1306527a4293154ad520cb800da84f626f8156b3cb09381e362e566545366b0')
-
-prepare() {
- cd ${pkgname}-${pkgver}
- patch -p1 < "${srcdir}/tetrinet-build.patch"
-}
-
-build() {
- cd ${pkgname}-${pkgver}
- make
-}
-
-package() {
- cd ${pkgname}-${pkgver}
- install -Dm 755 tetrinet "${pkgdir}/usr/bin/tetrinet"
- install -Dm 755 tetrinet-server "${pkgdir}/usr/bin/tetrinet-server"
- install -Dm 644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
- install -Dm 644 tetrinet.txt "${pkgdir}/usr/share/doc/${pkgname}/tetrinet.txt"
-}
-
-# vim: ts=2 sw=2 et:
Copied: tetrinet/repos/community-x86_64/PKGBUILD (from rev 341651, tetrinet/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2018-06-07 06:04:34 UTC (rev 341652)
@@ -0,0 +1,36 @@
+# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
+# Contributor: MCMic <come.bernigaud at laposte.net>
+
+pkgname=tetrinet
+pkgver=0.11
+pkgrel=8
+pkgdesc="Multiplayer online Tetris game for up to six people"
+url="http://tetrinet.or.cz/"
+arch=('x86_64')
+license=('Public domain')
+depends=('ncurses')
+makedepends=('pkgconfig')
+source=(${pkgname}-${pkgver}.tar.bz2::http://tetrinet.or.cz/download/${pkgname}-${pkgver}.tar.bz2
+ tetrinet-build.patch)
+sha512sums=('8123a8c50a3c1b6326d3209272a60c8050afd2a9eb455814fd676d8c4de922f8b81a88df9e4825d1ff5e0c8b8a7ac46ebe9ce68994587f829e047a3d889880fa'
+ '617f41f7c64b718f036c17262faf43eb47395fcbf3163560105257257e6acc73c1306527a4293154ad520cb800da84f626f8156b3cb09381e362e566545366b0')
+
+prepare() {
+ cd ${pkgname}-${pkgver}
+ patch -p1 < "${srcdir}/tetrinet-build.patch"
+}
+
+build() {
+ cd ${pkgname}-${pkgver}
+ make
+}
+
+package() {
+ cd ${pkgname}-${pkgver}
+ install -Dm 755 tetrinet "${pkgdir}/usr/bin/tetrinet"
+ install -Dm 755 tetrinet-server "${pkgdir}/usr/bin/tetrinet-server"
+ install -Dm 644 README "${pkgdir}/usr/share/doc/${pkgname}/README"
+ install -Dm 644 tetrinet.txt "${pkgdir}/usr/share/doc/${pkgname}/tetrinet.txt"
+}
+
+# vim: ts=2 sw=2 et:
Deleted: tetrinet-build.patch
===================================================================
--- tetrinet-build.patch 2018-06-07 06:04:12 UTC (rev 341651)
+++ tetrinet-build.patch 2018-06-07 06:04:34 UTC (rev 341652)
@@ -1,84 +0,0 @@
---- a/Makefile
-+++ b/Makefile
-@@ -1,6 +1,4 @@
--CC = cc
--
--CFLAGS = -O2 -I/usr/include/ncurses -DHAVE_IPV6 -g -Wall
-+CFLAGS += -I/usr/include/ncurses -DHAVE_IPV6 -g -Wall
- OBJS = sockets.o tetrinet.o tetris.o tty.o xwin.o
-
- ### If you want to have -server tetrinet client option, comment the two lines
-@@ -24,10 +22,10 @@
- ########
-
- tetrinet: $(OBJS)
-- $(CC) -o $@ $(OBJS) -lncurses
-+ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(shell pkg-config --libs ncurses)
-
- tetrinet-server: server.c sockets.c tetrinet.c tetris.c server.h sockets.h tetrinet.h tetris.h
-- $(CC) $(CFLAGS) -o $@ -DSERVER_ONLY server.c sockets.c tetrinet.c tetris.c
-+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -DSERVER_ONLY server.c sockets.c tetrinet.c tetris.c
-
- .c.o:
- $(CC) $(CFLAGS) -c $<
---- a/sockets.c
-+++ b/sockets.c
-@@ -66,7 +66,7 @@
- if (c == 0xFF)
- ptr--;
- *ptr = 0;
-- if (log) {
-+ if (logging) {
- if (!logfile)
- logfile = fopen(logname, "a");
- if (logfile) {
-@@ -89,7 +89,7 @@
- unsigned char c = 0xFF;
- int n = 0;
-
-- if (log) {
-+ if (logging) {
- if (!logfile)
- logfile = fopen(logname, "a");
- if (logfile) {
---- a/tetrinet.c
-+++ b/tetrinet.c
-@@ -21,7 +21,7 @@
- /*************************************************************************/
-
- int fancy = 0; /* Fancy TTY graphics? */
--int log = 0; /* Log network traffic to file? */
-+int logging = 0; /* Log network traffic to file? */
- char *logname; /* Log filename */
- int windows_mode = 0; /* Try to be just like the Windows version? */
- int noslide = 0; /* Disallow piece sliding? */
-@@ -82,8 +82,7 @@
- else
- winlist[i].team = 0;
- s++;
-- strncpy(winlist[i].name, s, sizeof(winlist[i].name)-1);
-- winlist[i].name[sizeof(winlist[i].name)] = 0;
-+ snprintf(winlist[i].name, sizeof(winlist[i].name), "%s", s);
- winlist[i].points = atoi(t);
- if ((t = strchr(t, ';')) != NULL)
- winlist[i].games = atoi(t+1);
-@@ -590,7 +589,7 @@
- if (strcmp(av[i], "-fancy") == 0) {
- fancy = 1;
- } else if (strcmp(av[i], "-log") == 0) {
-- log = 1;
-+ logging = 1;
- i++;
- if (i >= ac) {
- fprintf(stderr, "Option -log requires an argument\n");
---- a/tetrinet.h
-+++ b/tetrinet.h
-@@ -74,7 +74,7 @@
- /* Externs */
-
- extern int fancy;
--extern int log;
-+extern int logging;
- extern char *logname;
- extern int windows_mode;
- extern int noslide;
Copied: tetrinet/repos/community-x86_64/tetrinet-build.patch (from rev 341651, tetrinet/trunk/tetrinet-build.patch)
===================================================================
--- tetrinet-build.patch (rev 0)
+++ tetrinet-build.patch 2018-06-07 06:04:34 UTC (rev 341652)
@@ -0,0 +1,84 @@
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,4 @@
+-CC = cc
+-
+-CFLAGS = -O2 -I/usr/include/ncurses -DHAVE_IPV6 -g -Wall
++CFLAGS += -I/usr/include/ncurses -DHAVE_IPV6 -g -Wall
+ OBJS = sockets.o tetrinet.o tetris.o tty.o xwin.o
+
+ ### If you want to have -server tetrinet client option, comment the two lines
+@@ -24,10 +22,10 @@
+ ########
+
+ tetrinet: $(OBJS)
+- $(CC) -o $@ $(OBJS) -lncurses
++ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(shell pkg-config --libs ncurses)
+
+ tetrinet-server: server.c sockets.c tetrinet.c tetris.c server.h sockets.h tetrinet.h tetris.h
+- $(CC) $(CFLAGS) -o $@ -DSERVER_ONLY server.c sockets.c tetrinet.c tetris.c
++ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ -DSERVER_ONLY server.c sockets.c tetrinet.c tetris.c
+
+ .c.o:
+ $(CC) $(CFLAGS) -c $<
+--- a/sockets.c
++++ b/sockets.c
+@@ -66,7 +66,7 @@
+ if (c == 0xFF)
+ ptr--;
+ *ptr = 0;
+- if (log) {
++ if (logging) {
+ if (!logfile)
+ logfile = fopen(logname, "a");
+ if (logfile) {
+@@ -89,7 +89,7 @@
+ unsigned char c = 0xFF;
+ int n = 0;
+
+- if (log) {
++ if (logging) {
+ if (!logfile)
+ logfile = fopen(logname, "a");
+ if (logfile) {
+--- a/tetrinet.c
++++ b/tetrinet.c
+@@ -21,7 +21,7 @@
+ /*************************************************************************/
+
+ int fancy = 0; /* Fancy TTY graphics? */
+-int log = 0; /* Log network traffic to file? */
++int logging = 0; /* Log network traffic to file? */
+ char *logname; /* Log filename */
+ int windows_mode = 0; /* Try to be just like the Windows version? */
+ int noslide = 0; /* Disallow piece sliding? */
+@@ -82,8 +82,7 @@
+ else
+ winlist[i].team = 0;
+ s++;
+- strncpy(winlist[i].name, s, sizeof(winlist[i].name)-1);
+- winlist[i].name[sizeof(winlist[i].name)] = 0;
++ snprintf(winlist[i].name, sizeof(winlist[i].name), "%s", s);
+ winlist[i].points = atoi(t);
+ if ((t = strchr(t, ';')) != NULL)
+ winlist[i].games = atoi(t+1);
+@@ -590,7 +589,7 @@
+ if (strcmp(av[i], "-fancy") == 0) {
+ fancy = 1;
+ } else if (strcmp(av[i], "-log") == 0) {
+- log = 1;
++ logging = 1;
+ i++;
+ if (i >= ac) {
+ fprintf(stderr, "Option -log requires an argument\n");
+--- a/tetrinet.h
++++ b/tetrinet.h
+@@ -74,7 +74,7 @@
+ /* Externs */
+
+ extern int fancy;
+-extern int log;
++extern int logging;
+ extern char *logname;
+ extern int windows_mode;
+ extern int noslide;
More information about the arch-commits
mailing list