updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / openocd / PKGBUILD
blob42331066ae8be57de65499d1efd0a1814bc36714
1 # Contributor: Matthias Bauch <matthias.bauch@gmail.com>
2 # Contributor: Laszlo Papp <djszapi2 at gmail com>
3 # Maintainer: Samuel Tardieu <sam@rfc1149.net>
5 pkgname=openocd
6 pkgver=0.5.0
7 pkgrel=2
8 pkgdesc="Debugging, in-system programming and boundary-scan testing for embedded target devices"
9 arch=('i686' 'x86_64')
10 url="http://openocd.berlios.de"
11 license=('GPL')
12 depends=('libftdi')
13 options=(!strip !libtool)
14 install=openocd.install
15 source=("http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2")
16 md5sums=('43434c2b5353c9b853278b8bff22cb1a')
18 # what features should be enabled on build
19 # 'ecos','zy1000' seams not to be supported on linux
21 _features=(parport ft2232_libftdi amtjtagaccel ep93xx at91rm9200 gw16012 presto_libftdi usbprog oocd_trace jlink vsllink rlink arm-jtag-ew buspirate)
23 build() {
24         cd ${srcdir}/${pkgname}-${pkgver}${_rc}
25         ./configure --prefix=/usr ${_features[@]/#/--enable-} --disable-werror
26         make || return 1
27         make DESTDIR=${pkgdir}/ install || return 1