Peg-E (Peg solitaire - a board game)

If there's software you need and you can't find, make a request for it.
Post Reply
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Peg-E (Peg solitaire - a board game)

Post by zAchAry »

Hallo,

Project homepage: http://gottcode.org/peg-e/

I would like to build Peg-E from git [link] and I guess that I'm doing something wrong. I used a SlackBuild from slacy.eu and I have added to it these lines

Code: Select all

chmod 644 $PKG/usr/doc/$PKGNAME-$VERSION/*

# Add translations
mkdir -p $PKG/usr/share/peg-e/translations
cp -a  translations/pege_he_IL.qm  $PKG/usr/share/peg-e/translations/pege_he_IL.qm
cp -a  translations/pege_en.qm  $PKG/usr/share/peg-e/translations/pege_en.qm

# Also add the slack-desk file and this slackbuild to the package
May anybody help with an SLKBUILD script? (the source code is short to build, only ~200k)

Thank you.
Image
Help to make Slackware easier Donate to Salix
Shador
Posts: 1295
Joined: 11. Jun 2009, 14:04
Location: Bavaria

Re: Peg-E (Peg solitaire - a board game)

Post by Shador »

Error?
Image
User avatar
zAchAry
Posts: 804
Joined: 11. May 2010, 09:02
Location: Israel

Re: Peg-E (Peg solitaire - a board game)

Post by zAchAry »

No, the translation did not work for me and I probably had other problems with the source itself.
Here is a working SLKBUILD by Graeme Gott, the author of Peg-E.

Code: Select all

pkgname=peg-e
pkgver=1.1.0
pkgrel=1
arch=i486
source=("http://gottcode.org/peg-e/peg-e-${pkgver}-src.tar.bz2")
docs=('credits' 'copying' 'changelog')
url="http://gottcode.org/peg-e/"

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"Peg-E (Peg elimination game)"
"A peg solitaire game in which you jump over pieces in order to remove"
"them from the board, ultimately trying to eliminate all but one. The"
"boards are randomly generated, with 100 levels of difficulty. The game"
"auto-saves, and has undo-redo capability. Pieces can move"
"horizontally, vertically, and diagonally."
)

build() {
        cd $startdir/src/$pkgname-$pkgver
        qmake PREFIX=/usr
        make || return 1
        make INSTALL_ROOT=$startdir/pkg install
}

doinst() {
        xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}
In my opinion, due to being so small, this should be installed by default in the SalixOS KDE edition.
Image
Help to make Slackware easier Donate to Salix
djemos
Salix Warrior
Posts: 1433
Joined: 29. Dec 2009, 13:45
Location: Greece

Re: Peg-E (Peg solitaire - a board game)

Post by djemos »

Code: Select all

pkgname=peg-e
pkgver=1.1.0
pkgrel=1
#source=("http://gottcode.org/peg-e/peg-e-${pkgver}-src.tar.bz2")
source=("https://github.com/gottcode/peg-e/tarball/master?peg-e-${pkgver}-src.tar.gz")
docs=('credits' 'copying' 'changelog')
url="http://gottcode.org/peg-e/"

slackdesc=\
(
#|-----handy-ruler------------------------------------------------------|
"Peg-E (Peg elimination game)"
"A peg solitaire game in which you jump over pieces in order to remove"
"them from the board, ultimately trying to eliminate all but one. The"
"boards are randomly generated, with 100 levels of difficulty. The game"
"auto-saves, and has undo-redo capability. Pieces can move"
"horizontally, vertically, and diagonally."
)

build() {
cd $startdir/src/gottcode-peg-e-43f4fa0
qmake PREFIX=/usr
make || return 1
make INSTALL_ROOT=$startdir/pkg install
rm $startdir/master?peg-e-${pkgver}-src.tar.gz
}

doinst() {
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
}

fakeroot slkbuild -X
Post Reply