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

Eric Belanger eric at archlinux.org
Fri Aug 29 16:56:49 EDT 2008


    Date: Friday, August 29, 2008 @ 16:56:49
  Author: eric
Revision: 10674

upgpkg: gdb 6.8-3
    fixed file conflicts with binutils, added .install file to deal with info files

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

-------------+
 PKGBUILD    |    6 ++++--
 gdb.install |   18 ++++++++++++++++++
 2 files changed, 22 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2008-08-29 20:52:51 UTC (rev 10673)
+++ PKGBUILD	2008-08-29 20:56:49 UTC (rev 10674)
@@ -2,14 +2,15 @@
 # Maintainer: Jan de Groot <jgc at archlinux.org>
 pkgname=gdb
 pkgver=6.8
-pkgrel=2
+pkgrel=3
 pkgdesc="The GNU Debugger"
 arch=(i686 x86_64)
+url="http://sources.redhat.com/gdb/"
 depends=('ncurses' 'expat')
 options=('!libtool')
 license=('GPL3')
+install=gdb.install
 source=(http://ftp.gnu.org/gnu/gdb/${pkgname}-${pkgver}.tar.bz2)
-url="http://sources.redhat.com/gdb/"
 md5sums=('c9da266b884fb8fa54df786dfaadbc7a')
 
 build() {
@@ -22,4 +23,5 @@
   # resolve conflicts with binutils
   rm -f ${startdir}/pkg/usr/include/{bfd,dis-asm,symcat,ansidecl,bfdlink}.h
   rm -f ${startdir}/pkg/usr/lib/{libiberty,libbfd,libopcodes}.a
+  rm -f ${startdir}/pkg/usr/share/info/{bfd.info,configure.info,standards.info}
 }

Added: gdb.install
===================================================================
--- gdb.install	                        (rev 0)
+++ gdb.install	2008-08-29 20:56:49 UTC (rev 10674)
@@ -0,0 +1,18 @@
+infodir=/usr/share/info
+filelist=(annotate.info gdb.info gdb.info-1 gdb.info-2 gdb.info-3 gdb.info-4 gdbint.info gdbint.info-1 gdbint.info-2 stabs.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
+}




More information about the arch-commits mailing list