Advertisement
Guest User

PKGBUILD

a guest
Dec 18th, 2012
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.59 KB | None | 0 0
  1. # Maintainer: Nick Østergaard <oe.nick at gmail dot com>
  2.  
  3. pkgname=openocd-git
  4. pkgver=20121206
  5. pkgrel=1
  6. pkgdesc="Debugging, in-system programming and boundary-scan testing for embedded target devices -using libftdi instead of ftd2xx"
  7. arch=('i686' 'x86_64')
  8. url="http://openocd.berlios.de/web/"
  9. license=('GPL')
  10. depends=('libftdi')
  11. makedepends=('git' 'automake>=1.11' 'tcl')
  12. provides=('openocd')
  13. conflicts=('openocd')
  14. source=()
  15. md5sums=()
  16. options=(!strip)
  17.  
  18. _gitroot=git://openocd.git.sourceforge.net/gitroot/openocd/openocd
  19. _gitname=openocd
  20.  
  21. build() {
  22.   cd ${srcdir}
  23.  
  24.   msg "Connecting to GIT server..."
  25.   if [[ -d $srcdir/$pkgname-$pkgver ]]; then
  26.     cd $srcdir/$pkgname-$pkgver && git pull origin || return 1
  27.   else
  28.     git clone $_gitroot $srcdir/$pkgname-$pkgver || return 1
  29.     cd $srcdir/$pkgname-$pkgver
  30.   fi
  31.  
  32.   msg "GIT checkout done or server timeout"
  33.  
  34.   #
  35.   # Build OpenOCD
  36.     #
  37.   cd $srcdir/$pkgname-$pkgver
  38.  
  39.   git fetch http://openocd.zylin.com/openocd refs/changes/22/922/14 && git checkout FETCH_HEAD
  40.  
  41.   ./bootstrap
  42.   ./configure \
  43.     --disable-werror \
  44.     --prefix=/usr \
  45.     --enable-maintainer-mode \
  46.     --enable-parport \
  47.     --enable-amtjtagaccel \
  48.     --enable-ep93xx \
  49.     --enable-at91rm9200 \
  50.     --enable-gw16012 \
  51.     --enable-presto_libftdi \
  52.     --enable-usbprog \
  53.     --enable-oocd_trace \
  54.     --enable-jlink \
  55.     --enable-vsllink \
  56.     --enable-rlink \
  57.     --enable-stlink \
  58.     --enable-arm-jtag-ew \
  59.     --enable-buspirate \
  60.         --enable-ti-icdi \
  61.     --enable-osbdm
  62.  
  63.   make
  64.   make DESTDIR=${pkgdir}/ install
  65.   rm -rf ${srcdir}/$_gitname-build
  66.   rm -rf $pkgdir/usr/share/info/dir
  67. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement