You are not logged in.

#1 2009-05-28 09:29:01

virusso80
Member
From: Italy
Registered: 2007-03-09
Posts: 325

chessdb: my first package

Hi all,
I'm trying to upgrade the package chess-db related to a chess database program. The problem is related to the permissions. It says that it cannot change permissions of '/usr/local/share/chessdb': No such file or directory
and build fails.

What can i do?

this is the pkgbuild:

# $Id$
# Contributor: Abc Def <abcdef@yahoo.it>
pkgname=chessdb
pkgver=3.6.18
pkgrel=1
pkgdesc="Free chess database"
arch=('i686')
url="http://chessdb.sourceforge.net"
license=('GPL')
depends=(tk)
source=(http://dl.sourceforge.net/sourceforge/chessdb/ChessDB-$pkgver.tar.gz)
md5sums=('6aee2e4eca26576cbe6e63dc6b8d55db')

build() {
  cd $startdir/src/ChessDB-$pkgver
  ./configure BINDIR="/usr/bin" SHAREDIR="/usr/share/chessdb"
  make || return 1
  make DESTDIR=$startdir/pkg install
}

Last edited by virusso80 (2013-03-27 09:14:16)

Offline

#2 2009-05-28 09:50:34

Stefan Husmann
Member
From: Germany
Registered: 2007-08-07
Posts: 1,391

Re: chessdb: my first package

Your setting of SHAREDIR obviously is not recognized at all. Try configure --help and look up the correct syntax.

Offline

#3 2009-05-28 14:43:33

virusso80
Member
From: Italy
Registered: 2007-03-09
Posts: 325

Re: chessdb: my first package

Stefan Husmann wrote:

Your setting of SHAREDIR obviously is not recognized at all. Try configure --help and look up the correct syntax.

i followed the official instructions: http://chessdb.sourceforge.net/tutorial … lation.php

Offline

#4 2009-05-28 14:58:27

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: chessdb: my first package

you can replace $startdir/src/ with $srcdir and $startdir/pkg with $pkgdir


Give what you have. To someone, it may be better than you dare to think.

Offline

#5 2009-05-28 15:47:23

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: chessdb: my first package

Their makefile's install target wasn't written properly.  You could do everything manually inside the PKGBUILD's build function or patch Makefile.conf with something like this:

chessdb-3.6.18.diff:

diff -Naur ChessDB-3.6.18~/Makefile.conf ChessDB-3.6.18/Makefile.conf
--- ChessDB-3.6.18~/Makefile.conf    2009-05-28 10:11:16.000000000 -0500
+++ ChessDB-3.6.18/Makefile.conf    2009-05-28 10:11:49.000000000 -0500
@@ -227,14 +227,14 @@
 #   for all users, and put extra files in $SHAREDIR, type "make install".
 #
 install: all
-    install -m 755 -d $(SHAREDIR)
+    install -m 755 -d $(DESTDIR)$(SHAREDIR)
     install -m 755 -d $(DESTDIR)$(BINDIR)
-    install -m 755 -d $(SOUNDSDIR)
-    install -m 755 -d $(TBDIR)
-    install -m 755 -d $(MANDIR)/man6
-    -install -m 644 -p $(SOUNDS)  $(SOUNDSDIR)
+    install -m 755 -d $(DESTDIR)$(SOUNDSDIR)
+#    install -m 755 -d $(TBDIR)
+    install -m 755 -d $(DESTDIR)$(MANDIR)/man6
+    -install -m 644 -p $(SOUNDS)  $(DESTDIR)$(SOUNDSDIR)
 #    -install -m 644 -p $(TABLEBASES)  $(TBDIR)
-    install -m 644 -p $(MAN6) $(MANDIR)/man6
+    install -m 644 -p $(MAN6) $(DESTDIR)$(MANDIR)/man6
     install -m 755 chessdb $(SCRIPTS) $(EXECS) $(DESTDIR)$(BINDIR)
     -install -m 755 -d $(DESTDIR)$(SHAREDIR)
     -install -m 644 -p chessdb.eco ratings.ssp $(DESTDIR)$(SHAREDIR)

If you use the patch method, your build function would look something like this (note that SOUNDSDIR/MANDIR also have to be configured out of /usr/local):

build() {
  cd "$srcdir"/ChessDB-$pkgver
  patch -Np1 -i ../chessdb-$pkgver.diff || return 1
  ./configure BINDIR=/usr/bin SHAREDIR=/usr/share/chessdb \
              SOUNDSDIR=/usr/share/chessdb/sounds MANDIR=/usr/share/man
  make || return 1
  make DESTDIR="$pkgdir" install
}

Offline

#6 2009-05-28 16:00:49

virusso80
Member
From: Italy
Registered: 2007-03-09
Posts: 325

Re: chessdb: my first package

I think it's too difficult to do this PKGBUILD file, I think i'm gonna un-own this packet. sad
It's not clear what i've to do. I created the chessdb-3.6.18 in the PKGBUILD directory but it gives

patch: **** Can't open patch file ../chessdb-3.6.18.diff : No such file or directory

I don't know

Offline

#7 2009-05-28 16:04:46

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: chessdb: my first package

virusso80 wrote:

I created the chessdb-3.6.18 in the PKGBUILD directory but it gives

patch: **** Can't open patch file ../chessdb-3.6.18.diff : No such file or directory

You need to add chessdb-$pkgver.diff to the source array.

Offline

#8 2009-05-28 16:16:31

buttons
Member
From: NJ, USA
Registered: 2007-08-04
Posts: 620

Re: chessdb: my first package

This is somewhat offtopic, but WHY are you using chessdb?  It's no longer maintained, and the fork was a terrible idea to begin with.

SCID is a very active project (under new ownership as of a year or two ago) and currently kicks chessdb's features to the curb, particularly in FICS support.

See http://prolinux.free.fr/scid/FAQ.html#fork_insane for details.


Cthulhu For President!

Offline

#9 2009-05-28 16:21:52

virusso80
Member
From: Italy
Registered: 2007-03-09
Posts: 325

Re: chessdb: my first package

buttons wrote:

This is somewhat offtopic, but WHY are you using chessdb?  It's no longer maintained, and the fork was a terrible idea to begin with.

SCID is a very active project (under new ownership as of a year or two ago) and currently kicks chessdb's features to the curb, particularly in FICS support.

See http://prolinux.free.fr/scid/FAQ.html#fork_insane for details.

I read scid is no longer supported and chessdb is the newest with more features. Maybe i'm wrong. Thanks

Offline

Board footer

Powered by FluxBB