[arch-commits] Commit in binutils/trunk (PKGBUILD binutils.install)

andyrtr at archlinux.org andyrtr at archlinux.org
Fri Aug 29 05:39:38 EDT 2008


    Date: Friday, August 29, 2008 @ 05:39:37
  Author: andyrtr
Revision: 10565

upgpkg: binutils 2.18-9
    new toolchain for new kernel-headers, gcc-4.3.2 and added info files all around

Added:
  binutils/trunk/binutils.install
Modified:
  binutils/trunk/PKGBUILD

------------------+
 PKGBUILD         |    9 ++++++---
 binutils.install |   20 ++++++++++++++++++++
 2 files changed, 26 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-08-29 09:36:17 UTC (rev 10564)
+++ PKGBUILD	2008-08-29 09:39:37 UTC (rev 10565)
@@ -5,7 +5,7 @@
 
 pkgname=binutils
 pkgver=2.18
-pkgrel=8
+pkgrel=9
 _date=20080610
 pkgdesc="A set of programs to assemble and manipulate binary and object files"
 arch=('i686' 'x86_64')
@@ -13,10 +13,11 @@
 license=('GPL')
 groups=('base')
 options=('!libtool' '!distcc' '!ccache')
-depends=('glibc>=2.8-1')
-makedepends=('texinfo>=4.12-2')
+depends=('glibc>=2.8-3')
+makedepends=('texinfo>=4.12-3')
 source=(ftp://ftp.archlinux.org/other/${pkgname}/${pkgname}-${pkgver}_${_date}.tar.bz2)
 md5sums=('9847b4141a1c99558cfd88dd65182566')
+install=binutils.install
 
 build() {
   # for cvs checkout
@@ -64,4 +65,6 @@
   # Remove these symlinks, with binutils prereleases they are not ABI stable.
   # Programs should compile static to the .a file.
   rm -f ${startdir}/pkg/usr/lib/lib{bfd,opcodes}.so
+
+  rm -f ${pkgdir}/usr/share/info/dir
 }

Added: binutils.install
===================================================================
--- binutils.install	                        (rev 0)
+++ binutils.install	2008-08-29 09:39:37 UTC (rev 10565)
@@ -0,0 +1,20 @@
+infodir=/usr/share/info
+filelist=(as.info bfd.info binutils.info configure.info gprof.info ld.info standards.info)
+
+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
+}
+
+# vim:set ts=2 sw=2 et:




More information about the arch-commits mailing list