[arch-commits] Commit in bc/repos (3 files)

Eric Bélanger eric at archlinux.org
Fri Nov 6 14:17:02 UTC 2009


    Date: Friday, November 6, 2009 @ 09:17:02
  Author: eric
Revision: 58241

Merged revisions 53805,58240 via svnmerge from 
svn+ssh://gerolde.archlinux.org/srv/svn-packages/bc/trunk

........
  r53805 | roman | 2009-10-03 08:37:53 -0400 (Sat, 03 Oct 2009) | 3 lines
  
  Added url
........
  r58240 | eric | 2009-11-06 09:16:27 -0500 (Fri, 06 Nov 2009) | 2 lines
  
  upgpkg: bc 1.06-7
      Added install script to update info db (close FS#13924)
........

Added:
  bc/repos/extra-x86_64/bc.install
    (from rev 58240, bc/trunk/bc.install)
Modified:
  bc/repos/extra-x86_64/	(properties)
  bc/repos/extra-x86_64/PKGBUILD

------------+
 PKGBUILD   |   20 +++++++++++---------
 bc.install |   20 ++++++++++++++++++++
 2 files changed, 31 insertions(+), 9 deletions(-)


Property changes on: bc/repos/extra-x86_64
___________________________________________________________________
Modified: svnmerge-integrated
   - /bc/trunk:1-42721
   + /bc/trunk:1-58240

Modified: extra-x86_64/PKGBUILD
===================================================================
--- extra-x86_64/PKGBUILD	2009-11-06 14:16:27 UTC (rev 58240)
+++ extra-x86_64/PKGBUILD	2009-11-06 14:17:02 UTC (rev 58241)
@@ -3,24 +3,26 @@
 
 pkgname=bc
 pkgver=1.06
-pkgrel=6
+pkgrel=7
 pkgdesc="An arbitrary precision calculator language"
-arch=(i686 x86_64)
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/bc/"
 license=('GPL')
 depends=('readline')
-replaces=(bc-readline)
-conflicts=(bc-readline)
+replaces=('bc-readline')
+conflicts=('bc-readline')
+install=bc.install
 source=(ftp://ftp.gnu.org/gnu/${pkgname}/${pkgname}-${pkgver}.tar.gz
 	build-fix.patch)
 md5sums=('d44b5dddebd8a7a7309aea6c36fda117' 'fc7ecbd9e55ef04c6d3a495692626116')
+sha1sums=('c8f258a7355b40a485007c40865480349c157292' '3af67c59e2232b9329ff0c1cf49d1a8a1cf87cd7')
 
 build() {
   CFLAGS="$CFLAGS -O3"
-  cd ${startdir}/src/${pkgname}-${pkgver}
-  patch -Np1 -i ${startdir}/src/build-fix.patch || return 1
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -Np1 -i ../build-fix.patch || return 1
   ./configure --prefix=/usr --mandir=/usr/share/man \
-    --infodir=/usr/share/info --with-readline
+    --infodir=/usr/share/info --with-readline || return 1
   make LEX="flex -I" || return 1
-  make DESTDIR=${startdir}/pkg install
-  rm ${pkgdir}/usr/share/info/dir
+  make DESTDIR="${pkgdir}" install || return 1
 }

Copied: bc/repos/extra-x86_64/bc.install (from rev 58240, bc/trunk/bc.install)
===================================================================
--- extra-x86_64/bc.install	                        (rev 0)
+++ extra-x86_64/bc.install	2009-11-06 14:17:02 UTC (rev 58241)
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(bc.info.gz dc.info.gz)
+
+post_install() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info $infodir/$file $infodir/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for file in ${filelist[@]}; do
+    install-info --delete $infodir/$file $infodir/dir 2> /dev/null
+  done
+}




More information about the arch-commits mailing list