[arch-general] arch-general Digest, Vol 73, Issue 6

Eric Bélanger snowmaniscool at gmail.com
Fri Nov 5 17:50:50 CET 2010


On Fri, Nov 5, 2010 at 8:06 AM, Auguste Pop <auguste at gmail.com> wrote:
> Hi, the src archive is attached. I will copy-paste the files bellow in
> case the attached file can not be properly received. However, the hash
> may be different.
>
> $ cat PKGBUILD
> # Contributor: Jason Chu <jason at archlinux.org>
> # Contributor: Tom Newsom <Jeepster at gmx.co.uk>
> # Contributor: Auguste <auguste at 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'
>         '5fb37acdeb9e6a80ddef0fb056519cd6'
>         '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
> }


FYI, .install files shouldn't have leading slashes.


More information about the arch-general mailing list