You are not logged in.

#1 2006-08-12 08:52:20

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Package request: gnushogi/xshogi

Surprised to find that this was not available, I tried to package it myself, but it fails miserably, and I'm not man enough to understand why. Surely, there must be some Archer who wants to play a game of shogi once in a while...?

Offline

#2 2006-08-12 09:41:06

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: Package request: gnushogi/xshogi

post the pkgbuild you have and a link to the packages website

Offline

#3 2006-08-12 10:31:53

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: Package request: gnushogi/xshogi

I had some problems finding an up-to-date tarball. The version available on most gnu ftp servers (1.3) would not compile, but there is a maintainance release 1.3.2 here: http://www.cs.caltech.edu/~mvanier/hack … 3.2.tar.gz. Initially, it would not download, and wget gave the error message:

Resolving www.cs.caltech.edu... failed: Temporary failure in name resolution.

But eventually I got it home, somehow. That's why the pkgbuild below uses a local file.

I've managed to compile/make/make install the program, and it works fine, but makepkg ends up like this:

==> Removing info/doc files...
==> Compressing man pages...
==> Stripping debugging symbols from libraries...
==> Stripping symbols from binaries...
==> Generating .PKGINFO file...
==> Generating .FILELIST file...
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
==> Compressing package...
tar: *: Cannot stat: No such file or directory
tar: Error exit delayed from previous errors
==> Finished making: gnushogi  (Sat Aug 12 12:24:01 CEST 2006)

and the outcome is a useless 500b package. I assume/suspect that makepkg removes some files which the program needs or something?, but I don't know how to check that or fix it.

here's the PKGBUILD:

pkgname=gnushogi
pkgver=1.3.2
pkgrel=1
pkgdesc="GNUShogi plays a game of japanese chess (shogi) against the user or against itself"
url="http://directory.fsf.org/gnushogi.html"
license=""
depends=()
makedepends=()
conflicts=()
replaces=()
backup=()
install=
source=($pkgname-$pkgver.tar.gz)
md5sums=('a18eae93afc89bfd368ed5f6768be791')
build() {
  cd $startdir/src/$pkgname-$pkgver
  ./configure --prefix=/usr
  make || return 1
  make DESTDIR=$startdir/pkg install
}

Offline

#4 2006-08-12 12:38:02

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: Package request: gnushogi/xshogi

this one works.....

pkgname=gnushogi 
 pkgver=1.3.2 
 pkgrel=1 
 pkgdesc="GNUShogi plays a game of japanese chess (shogi) against the user or against itself" 
 url="http://directory.fsf.org/gnushogi.html" 
 license="" 
 depends=('libxaw' 'termcap-compat') 
 makedepends=() 
 conflicts=() 
 replaces=() 
 backup=() 
 install= 
 source=(http://www.cs.caltech.edu/~mvanier/hacking/$pkgname/$pkgname-$pkgver.tar.gz) 
 md5sums=('a18eae93afc89bfd368ed5f6768be791') 
 build() { 
   cd $startdir/src/$pkgname-$pkgver 
   ./configure --prefix=/usr 
   make || return 1 
   make prefix=$startdir/pkg/usr install 
 }


enjoy

Offline

#5 2006-08-12 13:03:24

eyolf
Member
From: Copenhagen
Registered: 2005-11-29
Posts: 339
Website

Re: Package request: gnushogi/xshogi

Thanks!
May I ask you, for future reference: is that a general thing, that when I specify a prefix directory, the make install line will have to be changed too?

Offline

#6 2006-08-12 13:16:37

mpie
Member
From: 404 Not found
Registered: 2005-03-06
Posts: 649

Re: Package request: gnushogi/xshogi

not all makefiles respect DESTDIR......
some need prefix some need seperate variables of their own, but thats where the clues are found

Offline

Board footer

Powered by FluxBB