Page 1 of 1

Peg-E (Peg solitaire - a board game)

Posted: 2. Jun 2012, 17:41
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.

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

Posted: 2. Jun 2012, 19:00
by Shador
Error?

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

Posted: 3. Jun 2012, 04:09
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.

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

Posted: 3. Jun 2012, 07:13
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