Advertisement
Guest User

Untitled

a guest
Apr 25th, 2012
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1.  
  2. # Maintainer: Matthew 'Zashi' Hiles <zashi@vay8.net>
  3.  
  4. pkgname=mspgcc-gdb
  5. pkgver=20120406
  6. pkgrel=1
  7. pkgdesc="GNU Debug for the MSP430 family of microcontrollers"
  8. arch=('i686' 'x86_64')
  9. url="http://mspgcc.sf.net"
  10. license=('GPL')
  11. groups=()
  12. depends=('zlib')
  13. makedepends=()
  14. provides=()
  15. conflicts=()
  16. replaces=()
  17. backup=()
  18. options=('!emptydirs' '!libtool')
  19. install=
  20. _gdb='7.2'
  21. _mspgcc_ver=20120406
  22. _gdb_patch_ver=20111205
  23.  
  24. source=("http://surfnet.dl.sourceforge.net/project/mspgcc/mspgcc/mspgcc-${_mspgcc_ver}.tar.bz2" "http://ftp.gnu.org/gnu/gdb/gdb-${_gdb}a.tar.bz2")
  25. noextract=()
  26. md5sums=('66a729487c2649a732b516dbe473f298'
  27. 'ae6c7c98de35dc14b6720c9c321e4d94')
  28. build() {
  29. cd "$srcdir"
  30.  
  31. #
  32. # EXTRACT HERE
  33. #
  34.  
  35. tar jxf mspgcc-$pkgver.tar.bz2
  36. tar jxf gdb-${_gdb}a.tar.bz2
  37.  
  38. #
  39. # PATCH HERE
  40. #
  41.  
  42. cd gdb-${_gdb}
  43. patch -p1 < ../mspgcc-${pkgver}/msp430-gdb-${_gdb}a-${_gdb_patch_ver}.patch
  44.  
  45. #
  46. # BUILD HERE
  47. #
  48. ./configure \
  49. --prefix=/usr \
  50. --program-prefix="msp430-" \
  51. --disable-multilib \
  52. --disable-nls \
  53. --enable-install-libbfd \
  54. --infodir=/usr/share/info \
  55. --libdir=/usr/lib \
  56. --mandir=/usr/share/man \
  57. --target=msp430
  58. make configure-host
  59. make tooldir=/usr all
  60. }
  61.  
  62. package() {
  63. cd "$srcdir/gdb-${_gdb%a}"
  64. make DESTDIR=${pkgdir} tooldir=/usr install
  65.  
  66. cd ${pkgdir}
  67. for i in usr/i686-pc-linux-gnu/msp430/include/ansidecl.h usr/i686-pc-linux-gnu/msp430/include/bfd.h usr/i686-pc-linux-gnu/msp430/include/bfdlink.h usr/i686-pc-linux-gnu/msp430/include/dis-asm.h usr/i686-pc-linux-gnu/msp430/include/symcat.h usr/i686-pc-linux-gnu/msp430/lib/libbfd.a usr/i686-pc-linux-gnu/msp430/lib/libopcodes.a usr/lib/libiberty.a usr/share/info/bfd.info* usr/share/info/configure.info* usr/share/info/standards.info*; do
  68. rm -f "$i";
  69. done
  70.  
  71.  
  72. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement