[arch-commits] Commit in gnugo/trunk (LICENSE PKGBUILD gnugo.install)
Eric Bélanger
eric at archlinux.org
Mon Feb 23 03:40:37 UTC 2009
Date: Sunday, February 22, 2009 @ 22:40:37
Author: eric
Revision: 27574
upgpkg: gnugo 3.8-1
Upstream update, Updated license, Added install scriptlet to handle info pages
Added:
gnugo/trunk/gnugo.install
Modified:
gnugo/trunk/LICENSE
gnugo/trunk/PKGBUILD
---------------+
LICENSE | 29 ++++++++++++++---------------
PKGBUILD | 30 ++++++++++++++----------------
gnugo.install | 18 ++++++++++++++++++
3 files changed, 46 insertions(+), 31 deletions(-)
Modified: LICENSE
===================================================================
--- LICENSE 2009-02-23 03:29:23 UTC (rev 27573)
+++ LICENSE 2009-02-23 03:40:37 UTC (rev 27574)
@@ -1,7 +1,7 @@
Copyrights and License
-All files Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006 and 2007
-by the Free Software Foundation except as noted below.
+All files Copyright 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
+2007, 2008 and 2009 by the Free Software Foundation except as noted below.
All files are under the GNU General Public License, which may be
found in the file COPYING, with the following exceptions.
@@ -10,7 +10,7 @@
the Free Software Foundation. In the interests of promoting
the Go Text Protocol these two files are licensed under a less
restrictive license than the GPL and are free for unrestricted use.
- The GTP license appears at the end of this file.
+ The GTP license appears in each file.
* The files gmp.c and gmp.h are copyright Bill Shubert. These
are free for unrestricted use.
@@ -37,19 +37,19 @@
* files gtp.c and gtp.h are licensed under less restrictive *
* terms than the rest of GNU Go. *
* *
- * Copyright 2001, 2002, 2003, 2004, 2005, 2006 and 2007 *
- * by the Free Software Foundation. *
+ * Copyright 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 and *
+ * 2009 by the Free Software Foundation. *
* *
* Permission is hereby granted, free of charge, to any person *
- * obtaining a copy of the files gtp.c and gtp.h, to deal *
- * in the Software without restriction, including without *
- * limitation the rights to use, copy, modify, merge, publish, *
- * distribute, and/or sell copies of the Software, and to permit *
- * persons to whom the Software is furnished to do so, provided *
- * that the above copyright notice(s) and this permission notice *
- * appear in all copies of the Software and that both the above *
- * copyright notice(s) and this permission notice appear in *
- * supporting documentation. *
+ * obtaining a copy of this file gtp.c, to deal in the Software *
+ * without restriction, including without limitation the rights *
+ * to use, copy, modify, merge, publish, distribute, and/or *
+ * sell copies of the Software, and to permit persons to whom *
+ * the Software is furnished to do so, provided that the above *
+ * copyright notice(s) and this permission notice appear in all *
+ * copies of the Software and that both the above copyright *
+ * notice(s) and this permission notice appear in supporting *
+ * documentation. *
* *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY *
* KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE *
@@ -68,4 +68,3 @@
* promote the sale, use or other dealings in this Software *
* without prior written authorization of the copyright holder. *
\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
-
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2009-02-23 03:29:23 UTC (rev 27573)
+++ PKGBUILD 2009-02-23 03:40:37 UTC (rev 27574)
@@ -4,25 +4,23 @@
# Commiter: damir <damir at archlinux.org>
pkgname=gnugo
-pkgver=3.7.12
-pkgrel=2
+pkgver=3.8
+pkgrel=1
pkgdesc="This sofware is a program that plays the game of Go"
arch=('i686' 'x86_64')
-license=('GPL' 'custom')
-#source=(http://ftp.gnu.org/gnu/gnugo/$pkgname-$pkgver.tar.gz)
-source=(http://match.stanford.edu/gnugo/archive/gnugo-$pkgver.tar.gz \
- 'LICENSE')
url="http://www.gnu.org/software/gnugo/"
-depends=('ncurses' 'glibc')
-md5sums=('843c747edf2bcc0ff1f98514b164a7c4'
- '2fe1ed5b9818815a4368f765d8024cc7')
+license=('GPL3' 'custom')
+depends=('ncurses' 'glibc' 'texinfo')
+install=gnugo.install
+source=(http://ftp.gnu.org/gnu/gnugo/$pkgname-$pkgver.tar.gz LICENSE)
+md5sums=('6db0a528df58876d2b0ef1659c374a9a' '4df5819356804397c553c95ea8164f11')
build() {
- cd $startdir/src/$pkgname-$pkgver
- ./configure --prefix=/usr
- make || return 1
- make prefix=$startdir/pkg/usr install
- rm ${pkgdir}/usr/share/info/dir
-
- install -Dm644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
+ cd $srcdir/$pkgname-$pkgver
+ ./configure --prefix=/usr || return 1
+ make || return 1
+ make DESTDIR=$pkgdir install || return 1
+ rm -r ${pkgdir}/usr/share/info/dir
+ gzip ${pkgdir}/usr/share/info/*
+ install -Dm644 $srcdir/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}
Added: gnugo.install
===================================================================
--- gnugo.install (rev 0)
+++ gnugo.install 2009-02-23 03:40:37 UTC (rev 27574)
@@ -0,0 +1,18 @@
+infodir=/usr/share/info
+filelist=(gnugo.info.gz gnugo.info-1.gz gnugo.info-2.gz gnugo.info-3.gz)
+
+post_install() {
+ for file in ${filelist[@]}; do
+ install-info $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+pre_remove() {
+ for file in ${filelist[@]}; do
+ install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+ done
+}
More information about the arch-commits
mailing list