mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-22 19:44:21 +01:00
games/bluemoon: Added (card game)
Signed-off-by: dsomero <xgizzmo@slackbuilds.org>
This commit is contained in:
parent
fe011b7b52
commit
da9186e9a5
7 changed files with 202 additions and 0 deletions
6
games/bluemoon/README
Normal file
6
games/bluemoon/README
Normal file
|
@ -0,0 +1,6 @@
|
|||
Blue Moon AI is a project to create an artificial intelligence
|
||||
opponent for the card game Blue Moon.
|
||||
All eight of the original Blue Moon people decks are supported,
|
||||
as well as the more recent Buka Invasion deck.
|
||||
Rules for the game can be found in /usr/doc/bluemoon-*.
|
||||
|
87
games/bluemoon/bluemoon.SlackBuild
Normal file
87
games/bluemoon/bluemoon.SlackBuild
Normal file
|
@ -0,0 +1,87 @@
|
|||
#!/bin/sh
|
||||
|
||||
# Slackware build script for Blue Moon AI
|
||||
|
||||
# Written by Stefano Guidoni <s.guidoni@katamail.com>
|
||||
|
||||
PRGNAM=bluemoon
|
||||
VERSION=${VERSION:-1.3.2}
|
||||
BUILD=${BUILD:-1}
|
||||
TAG=${TAG:-_SBo}
|
||||
|
||||
# Automatically determine the architecture we're building on:
|
||||
if [ -z "$ARCH" ]; then
|
||||
case "$( uname -m )" in
|
||||
i?86) ARCH=i486 ;;
|
||||
arm*) ARCH=arm ;;
|
||||
# Unless $ARCH is already set, use uname -m for all other archs:
|
||||
*) ARCH=$( uname -m ) ;;
|
||||
esac
|
||||
fi
|
||||
|
||||
CWD=$(pwd)
|
||||
TMP=${TMP:-/tmp/SBo}
|
||||
PKG=$TMP/package-$PRGNAM
|
||||
OUTPUT=${OUTPUT:-/tmp}
|
||||
|
||||
if [ "$ARCH" = "i486" ]; then
|
||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "i686" ]; then
|
||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||
LIBDIRSUFFIX=""
|
||||
elif [ "$ARCH" = "x86_64" ]; then
|
||||
SLKCFLAGS="-O2 -fPIC"
|
||||
LIBDIRSUFFIX="64"
|
||||
else
|
||||
SLKCFLAGS="-O2"
|
||||
LIBDIRSUFFIX=""
|
||||
fi
|
||||
|
||||
set -e # Exit on most errors
|
||||
|
||||
rm -rf $PKG
|
||||
mkdir -p $TMP $PKG $OUTPUT
|
||||
cd $TMP
|
||||
rm -rf $PRGNAM-$VERSION
|
||||
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
|
||||
cd $PRGNAM-$VERSION
|
||||
chown -R root:root .
|
||||
find . \
|
||||
\( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
|
||||
-exec chmod 755 {} \; -o \
|
||||
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
|
||||
-exec chmod 644 {} \;
|
||||
|
||||
CFLAGS="$SLKCFLAGS" \
|
||||
CXXFLAGS="$SLKCFLAGS" \
|
||||
./configure \
|
||||
--prefix=/usr \
|
||||
--mandir=/usr/man \
|
||||
--docdir=/usr/doc/$PRGNAM-$VERSION
|
||||
|
||||
make
|
||||
make install DESTDIR=$PKG
|
||||
|
||||
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
|
||||
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
|
||||
|
||||
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cp -a \
|
||||
README \
|
||||
$PKG/usr/doc/$PRGNAM-$VERSION
|
||||
cat $CWD/bluemoonrules.pdf > $PKG/usr/doc/$PRGNAM-$VERSION/bluemoonrules.pdf
|
||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||
|
||||
# Copy icon and desktop entry
|
||||
mkdir -p $PKG/usr/share/pixmaps
|
||||
cp $CWD/$PRGNAM.png $PKG/usr/share/pixmaps/$PRGNAM.png
|
||||
mkdir -p $PKG/usr/share/applications
|
||||
cp $CWD/$PRGNAM.desktop $PKG/usr/share/applications/$PRGNAM.desktop
|
||||
|
||||
mkdir -p $PKG/install
|
||||
cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||
|
||||
cd $PKG
|
||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
75
games/bluemoon/bluemoon.desktop
Normal file
75
games/bluemoon/bluemoon.desktop
Normal file
|
@ -0,0 +1,75 @@
|
|||
[Desktop Entry]
|
||||
Name=Blue Moon
|
||||
GenericName=Card Game
|
||||
GenericName[af]=Kaart Speletjie
|
||||
GenericName[be]=Картачная гульня
|
||||
GenericName[bn]=তাস খেলা
|
||||
GenericName[br]=C'hoari kartennoù
|
||||
GenericName[ca]=Joc de cartes
|
||||
GenericName[ca@valencia]=Joc de cartes
|
||||
GenericName[cs]=Karty
|
||||
GenericName[cy]=Gêm Cerdiau
|
||||
GenericName[da]=Kortspil
|
||||
GenericName[de]=Offiziersskat
|
||||
GenericName[el]=Παιχνίδι χαρτιών
|
||||
GenericName[en_GB]=Card Game
|
||||
GenericName[eo]=Kartludo
|
||||
GenericName[es]=Juego de cartas
|
||||
GenericName[et]=Kaardimäng
|
||||
GenericName[eu]=Karta-jokoa
|
||||
GenericName[fa]=بازی ورق
|
||||
GenericName[fi]=Korttipeli
|
||||
GenericName[fr]=Jeu de cartes
|
||||
GenericName[ga]=Cluiche Cártaí
|
||||
GenericName[gl]=Xogo de cartas
|
||||
GenericName[he]=משחק קלפים
|
||||
GenericName[hne]=तास वाले खेल
|
||||
GenericName[hr]=Kartaška igra
|
||||
GenericName[hu]=Kártyajáték
|
||||
GenericName[is]=Spil
|
||||
GenericName[it]=Gioco di carte
|
||||
GenericName[ja]=カードゲーム
|
||||
GenericName[km]=ល្បែងបៀ
|
||||
GenericName[ko]=카드 게임
|
||||
GenericName[lt]=Kortų žaidimas
|
||||
GenericName[lv]=Kāršu spēle
|
||||
GenericName[mk]=Игра со карти
|
||||
GenericName[nb]=Kortspill
|
||||
GenericName[nds]=Koortenspeel
|
||||
GenericName[ne]=ताश खेल
|
||||
GenericName[nl]=Kaartspel
|
||||
GenericName[nn]=Kortspel
|
||||
GenericName[oc]=Jòc de cartas
|
||||
GenericName[pa]=ਤਾਸ਼ ਖੇਡ
|
||||
GenericName[pl]=Gra karciana
|
||||
GenericName[pt]=Jogo de Cartas
|
||||
GenericName[pt_BR]=Jogo de Cartas
|
||||
GenericName[ro]=Un joc de cărți
|
||||
GenericName[ru]=Карточная игра
|
||||
GenericName[se]=Goartaspeallu
|
||||
GenericName[sk]=Kartová hra
|
||||
GenericName[sl]=Igra s kartami
|
||||
GenericName[sr]=Игра са картама
|
||||
GenericName[sr@ijekavian]=Игра са картама
|
||||
GenericName[sr@ijekavianlatin]=Igra sa kartama
|
||||
GenericName[sr@latin]=Igra sa kartama
|
||||
GenericName[sv]=Kortspel
|
||||
GenericName[ta]=அட்டை விளையாட்டு
|
||||
GenericName[te]=పేక ఆట
|
||||
GenericName[tg]=Бозии Кортҳо
|
||||
GenericName[tr]=İskambil Oyunu
|
||||
GenericName[uk]=Гра у карти
|
||||
GenericName[uz]=Qarta oʻyini
|
||||
GenericName[uz@cyrillic]=Қарта ўйини
|
||||
GenericName[vi]=Game thẻ
|
||||
GenericName[wa]=Cwårdjeu
|
||||
GenericName[xh]=Ikhadi lomdlalo
|
||||
GenericName[x-test]=xxCard Gamexx
|
||||
GenericName[zh_CN]=牌类游戏
|
||||
GenericName[zh_TW]=紙牌遊戲
|
||||
Exec=bluemoon
|
||||
Icon=bluemoon
|
||||
MimeType=
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=Game;CardGame;
|
12
games/bluemoon/bluemoon.info
Normal file
12
games/bluemoon/bluemoon.info
Normal file
|
@ -0,0 +1,12 @@
|
|||
PRGNAM="bluemoon"
|
||||
VERSION="1.3.2"
|
||||
HOMEPAGE="http://keldon.net/bluemoon/"
|
||||
DOWNLOAD="http://keldon.net/bluemoon/bluemoon-1.3.2.tar.gz \
|
||||
http://www.fantasyflightgames.com/PDF/bluemoonrules.pdf"
|
||||
MD5SUM="86af3a644b2a293a18d0e3d9e86c3279 \
|
||||
49cd77c48b27c6cd964fd501297e5a2f"
|
||||
DOWNLOAD_x86_64=""
|
||||
MD5SUM_x86_64=""
|
||||
MAINTAINER="Stefano Guidoni"
|
||||
EMAIL="s.guidoni@katamail.com"
|
||||
APPROVED="dsomero"
|
BIN
games/bluemoon/bluemoon.png
Normal file
BIN
games/bluemoon/bluemoon.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.8 KiB |
3
games/bluemoon/doinst.sh
Normal file
3
games/bluemoon/doinst.sh
Normal file
|
@ -0,0 +1,3 @@
|
|||
if [ -x /usr/bin/update-desktop-database ]; then
|
||||
/usr/bin/update-desktop-database -q usr/share/applications &> /dev/null
|
||||
fi
|
19
games/bluemoon/slack-desc
Normal file
19
games/bluemoon/slack-desc
Normal file
|
@ -0,0 +1,19 @@
|
|||
# HOW TO EDIT THIS FILE:
|
||||
# The "handy ruler" below makes it easier to edit a package description. Line
|
||||
# up the first '|' above the ':' following the base package name, and the '|'
|
||||
# on the right side marks the last column you can put a character in. You must
|
||||
# make exactly 11 lines for the formatting to be correct. It's also
|
||||
# customary to leave one space after the ':'.
|
||||
|
||||
|-------handy-ruler---------------------------------------------------|
|
||||
bluemoon: Blue Moon AI (card game)
|
||||
bluemoon:
|
||||
bluemoon: Blue Moon AI is a project to create an artificial intelligence
|
||||
bluemoon: opponent for the game Blue Moon.
|
||||
bluemoon: All eight of the original Blue Moon people decks are supported,
|
||||
bluemoon: as well as the more recent Buka Invasion deck.
|
||||
bluemoon:
|
||||
bluemoon: homepage: http://keldon.net/bluemoon/
|
||||
bluemoon:
|
||||
bluemoon: Rules for the game can be found at:
|
||||
bluemoon: http://www.fantasyflightgames.com/PDF/bluemoonrules.pdf
|
Loading…
Reference in a new issue