diff options
author | nia <nia@pkgsrc.org> | 2022-01-17 13:23:17 +0000 |
---|---|---|
committer | nia <nia@pkgsrc.org> | 2022-01-17 13:23:17 +0000 |
commit | cea4d07025ea4368a4437a5cd790e4e284d7c49a (patch) | |
tree | deb2817d1212e31d1ed1104967d19a2af5054521 /games | |
parent | f202387de462b58a0204f8c900932bba3eb09952 (diff) | |
download | pkgsrc-cea4d07025ea4368a4437a5cd790e4e284d7c49a.tar.gz |
add games/xsol
This is a simple Motif/Lesstif version of the classic solitaire game.
This version of the game runs under X Window System.
Diffstat (limited to 'games')
-rw-r--r-- | games/Makefile | 3 | ||||
-rw-r--r-- | games/xsol/DESCR | 3 | ||||
-rw-r--r-- | games/xsol/Makefile | 35 | ||||
-rw-r--r-- | games/xsol/PLIST | 5 | ||||
-rw-r--r-- | games/xsol/distinfo | 5 | ||||
-rw-r--r-- | games/xsol/files/Makefile | 13 | ||||
-rw-r--r-- | games/xsol/files/xsol.6 | 65 | ||||
-rw-r--r-- | games/xsol/files/xsol.desktop | 10 | ||||
-rw-r--r-- | games/xsol/files/xsol.png | bin | 0 -> 2379 bytes |
9 files changed, 138 insertions, 1 deletions
diff --git a/games/Makefile b/games/Makefile index dd852a6d860..346d8e556e9 100644 --- a/games/Makefile +++ b/games/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.511 2021/12/30 00:43:35 nia Exp $ +# $NetBSD: Makefile,v 1.512 2022/01/17 13:23:17 nia Exp $ # COMMENT= Games @@ -469,6 +469,7 @@ SUBDIR+= xscorch SUBDIR+= xscrabble SUBDIR+= xskat SUBDIR+= xsokoban +SUBDIR+= xsol SUBDIR+= xsoldier SUBDIR+= xtacy SUBDIR+= xtris diff --git a/games/xsol/DESCR b/games/xsol/DESCR new file mode 100644 index 00000000000..0c26113f93e --- /dev/null +++ b/games/xsol/DESCR @@ -0,0 +1,3 @@ +This is a simple Motif/Lesstif version of the classic solitaire game. + +This version of the game runs under X Window System. diff --git a/games/xsol/Makefile b/games/xsol/Makefile new file mode 100644 index 00000000000..11773ceb662 --- /dev/null +++ b/games/xsol/Makefile @@ -0,0 +1,35 @@ +# $NetBSD: Makefile,v 1.1 2022/01/17 13:23:17 nia Exp $ + +DISTNAME= xsol_0.31.orig +PKGNAME= ${DISTNAME:S/_/-/g:S/.orig$//g} +CATEGORIES= games +MASTER_SITES= ${MASTER_SITE_DEBIAN:=pool/main/x/xsol/} + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= https://packages.debian.org/sid/xsol +COMMENT= Solitaire game for the X Window System +LICENSE= gnu-gpl-v2 + +WRKSRC= ${WRKDIR}/${DISTNAME:S/_/-/g} + +INSTALLATION_DIRS+= bin +INSTALLATION_DIRS+= share/applications +INSTALLATION_DIRS+= share/pixmaps +INSTALLATION_DIRS+= ${PKGMANDIR}/man6 + +pre-build: + ${CP} -f ${FILESDIR}/Makefile ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/xsol \ + ${DESTDIR}${PREFIX}/bin/xsol + ${INSTALL_DATA} ${FILESDIR}/xsol.desktop \ + ${DESTDIR}${PREFIX}/share/applications/xsol.desktop + ${INSTALL_DATA} ${FILESDIR}/xsol.6 \ + ${DESTDIR}${PREFIX}/${PKGMANDIR}/man6/xsol.6 + ${INSTALL_DATA} ${FILESDIR}/xsol.png \ + ${DESTDIR}${PREFIX}/share/pixmaps/xsol.png + +.include "../../sysutils/desktop-file-utils/desktopdb.mk" +.include "../../mk/motif.buildlink3.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/games/xsol/PLIST b/games/xsol/PLIST new file mode 100644 index 00000000000..354cea702a9 --- /dev/null +++ b/games/xsol/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1 2022/01/17 13:23:17 nia Exp $ +bin/xsol +man/man6/xsol.6 +share/applications/xsol.desktop +share/pixmaps/xsol.png diff --git a/games/xsol/distinfo b/games/xsol/distinfo new file mode 100644 index 00000000000..d0238ed7122 --- /dev/null +++ b/games/xsol/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1 2022/01/17 13:23:17 nia Exp $ + +BLAKE2s (xsol_0.31.orig.tar.gz) = d29a3df1df2cf27cbc07b6ad2033c85891a036e5b4f64749f9cd1ccca4b74463 +SHA512 (xsol_0.31.orig.tar.gz) = cc031362254fd9de178bec6b1915dabd3232e4be4fd677896f1b181858d393965768af8a927fb1457aafc90725b9dca2aa29b0c4f3a22d62b574bd6b3f34575c +Size (xsol_0.31.orig.tar.gz) = 18047 bytes diff --git a/games/xsol/files/Makefile b/games/xsol/files/Makefile new file mode 100644 index 00000000000..f5c2538be5e --- /dev/null +++ b/games/xsol/files/Makefile @@ -0,0 +1,13 @@ +# $NetBSD: Makefile,v 1.1 2022/01/17 13:23:17 nia Exp $ + +OBJS+= xsol.o + +LIBS+= -lXm + +all: xsol + +xsol.o: xsol.c + $(CC) $(CFLAGS) -c xsol.c + +xsol: xsol.o + $(CC) $(LDFLAGS) $(LIBS) -o xsol xsol.o diff --git a/games/xsol/files/xsol.6 b/games/xsol/files/xsol.6 new file mode 100644 index 00000000000..ce3b7873406 --- /dev/null +++ b/games/xsol/files/xsol.6 @@ -0,0 +1,65 @@ +.TH XSOL 6 "March 1999" "Debian Project" +.SH NAME +xsol \- X Solitaire +.SH SYNOPSIS +.B xsol +.br +.SH "DESCRIPTION" +This manual page briefly documents +.BR xsol +, a simple Motif/ Lesstif version of the classic solitaire game. +It was written for the Debian GNU/Linux distribution because the +original program does not have a manual page. +.br +.SH "HOW TO PLAY" +Solitaire is a card game. At the start you are presented with seven +columns of cards. First has only one card, second one has two, third +three and so on (28 in total), but only the first card in every +column is shown ('opened'). Also there is the deck (24 cards at the +start), and four empty places for suit stacks. +.sp +Cards in the deck and in the columns are unsorted, and the object of +Solitaire is to use all the cards in the deck to build up the four +suit stacks in ascending order, beginning with the aces. You can +accomplish that by dragging and dropping the red onto the black (and +black onto the red) cards between the columns, and between the deck +and the columns (but not the other way around). When you see a whole +turned card, click on it to see it ('open' it) and to be able to move +it somewhere. Deck is opened by clicking on it; once you reach the +end of the deck, just click once more and you'll reopen it. +.sp +If you reach a point when you can't move any more cards to the stacks, +and rearranging cards in columns and the deck gets you nowhere, the +game is over. Start it again. +.SH OPTIONS +You can access all options within the program, through the 'Game' +menu. There you have four options: +.br +.B New game +- start a new game, +.br +.B Undo +- undo last move, +.br +.B Options +- configure these options: +.br + Timed game - should we count the seconds? +.br + Keep score - should we count the score? +.br + Show number of cards in deck - should we show it? +.br + Draw one - card from the deck, +.br + Draw three - cards from the deck. +.br +.B About +- shows information about the author. +.br +.B Exit +- quits the game. +.SH AUTHOR +.B xsol +was written by Brian Masney <masneyb@newwave.net>, and this manual +page was written by Josip Rodin <jrodin@jagor.srce.hr>. diff --git a/games/xsol/files/xsol.desktop b/games/xsol/files/xsol.desktop new file mode 100644 index 00000000000..5b9cbd797f0 --- /dev/null +++ b/games/xsol/files/xsol.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Exec=xsol +GenericName=Klondike Solitare +Icon=xsol +Name=X Solitaire +Comment=Klondike Solitaire game for the X Window System +Terminal=false +Type=Application +Categories=Game;CardGame; +Keywords=game;card;cardgame;solitaire diff --git a/games/xsol/files/xsol.png b/games/xsol/files/xsol.png Binary files differnew file mode 100644 index 00000000000..1a61ce1f54d --- /dev/null +++ b/games/xsol/files/xsol.png |