You are not logged in.
Pages: 1
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
Your setting of SHAREDIR obviously is not recognized at all. Try configure --help and look up the correct syntax.
Offline
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
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
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
I think it's too difficult to do this PKGBUILD file, I think i'm gonna un-own this packet.
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
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
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
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
Pages: 1