FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > ArchLinux > ArchLinux General Discussion

 
 
LinkBack Thread Tools
 
Old 11-05-2010, 10:09 AM
Guillaume ALAUX
 
Default package xboard long outdated, new pkgbuild attached

On 5 November 2010 03:21, Auguste Pop <auguste@gmail.com> wrote:

> Hi,
>
> The xboard package in extra has been long outdated and orphaned. I
> have attached my own PKGBUILD which includes an .desktop file to ease
> the use.
>
> Can any maintainer just update it?
>
> Thank you for your kind attention.
>
> Best Regards,
>

Hello Auguste,

No PKGBUILD on your email

--
Guillaume
 
Old 11-06-2010, 04:42 AM
Auguste Pop
 
Default package xboard long outdated, new pkgbuild attached

Thank you for pointing out the slash thing for me. I was not aware of
this. The updated files are cat below.

Best Regards,

$ cat PKGBUILD
# Contributor: Jason Chu <jason@archlinux.org>
# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
# Contributor: Auguste <auguste@gmail.com>

pkgname=xboard
pkgver=4.4.4
pkgrel=1
pkgdesc="A graphical user interfaces for chess"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/xboard/"
license=('GPL3')
depends=('libxaw' 'gnuchess' 'texinfo')
install=$pkgname.install
source=(ftp://ftp.gnu.org/gnu/$pkgname/${pkgname}-${pkgver}.tar.gz
${pkgname}.install ${pkgname}.desktop)
md5sums=('06a2d921650718ea272e7c0ec957dccc'
'a20d79ba844198ed23ee2eff1f8f4950'
'1d9d4a7864465a703fe4a215e83f4806')

build()
{
cd "${srcdir}/${pkgname}-${pkgver}"
sed -i 's/fairymax/gnuchess/' xboard.h
./configure --prefix=/usr --mandir=/usr/share/man
make
}

package()
{
install -m 755 -D ${srcdir}/${pkgname}.desktop
${pkgdir}/usr/share/applications/${pkgname}.desktop
cd "${srcdir}/${pkgname}-${pkgver}"
make DESTDIR="${pkgdir}" install
}
$ cat xboard.install
post_install()
{
install-info usr/share/info/xboard.info.gz usr/share/info/dir 2> /dev/null
if [ -e usr/bin/gtk-update-icon-cache ]
then
usr/bin/gtk-update-icon-cache -fq usr/share/icons/hicolor
fi
}

post_upgrade()
{
post_install $1
}

pre_remove()
{
install-info --delete usr/share/info/xboard.info.gz
usr/share/info/dir 2> /dev/null
if [ -e usr/bin/gtk-update-icon-cache ]
then
usr/bin/gtk-update-icon-cache -fq usr/share/icons/hicolor
fi
}
$ cat xboard.desktop
[Desktop Entry]
Type=Application
Version=1.0
Name=XBoard
Comment=An X Window System graphical chessboard
Exec=xboard
Icon=xboard
Terminal=false
Categories=Game;BoardGame
 

Thread Tools




All times are GMT. The time now is 10:57 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org