From 0459e6459ee534bf22ab8a5381cd485e6035e9e2 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Wed, 23 Apr 2014 03:27:46 +0000 Subject: Wed Apr 23 03:24:08 UTC 2014 --- community/openocd/PKGBUILD | 34 +++++++++++++--------------------- 1 file changed, 13 insertions(+), 21 deletions(-) (limited to 'community/openocd') diff --git a/community/openocd/PKGBUILD b/community/openocd/PKGBUILD index 18803f55d..8cb9c97c0 100644 --- a/community/openocd/PKGBUILD +++ b/community/openocd/PKGBUILD @@ -1,40 +1,32 @@ -# $Id: PKGBUILD 102001 2013-12-03 16:51:56Z eric $ -# Maintainer: Bartłomiej Piotrowski +# $Id: PKGBUILD 109969 2014-04-22 15:34:00Z spupykin $ +# Contributor: Bartłomiej Piotrowski # Contributor: Matthias Bauch # Contributor: Laszlo Papp # Contributor: Samuel Tardieu pkgname=openocd -pkgver=0.7.0 -pkgrel=3 +pkgver=0.8.0_rc1 +pkgrel=4 pkgdesc='Debugging, in-system programming and boundary-scan testing for embedded target devices' arch=('i686' 'x86_64') url='http://openocd.berlios.de' license=('GPL') -depends=('libftdi' 'libusb-compat') +depends=('libftdi' 'libftdi-compat' 'libusb' 'libusb-compat') options=(!strip) install=openocd.install -source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver.tar.bz2) -sha256sums=('52237b786530c8460b221556c26fa4779f668b7dcb83ff14b8c5eb2050f38e63') - -_features=(amtjtagaccel arm-jtag-ew at91rm9200 buspirate ep93xx ft2232_libftdi ftdi gw16012 jlink oocd_trace opendous osbdm parport presto_libftdi remote-bitbang rlink stlink ti-icdi ulink usbprog vsllink) - -# FIXME: needs /dev/bus/usb and cannot be compiled in chroot -prepare() { - cd $pkgname-$pkgver - sed -i 's|$CC -E|$CC -O2 -E|g' configure - sed -i 's|\${CC} -E|$CC -O2 -E|g' configure - sed -i 's|-lftdi -lusb|-lftdi1 -lusb-1.0|g' configure src/Makefile* -} +_features=(amtjtagaccel arm-jtag-ew at91rm9200 buspirate ep93xx ftdi gw16012 jlink oocd_trace opendous osbdm parport presto_libftdi remote-bitbang rlink stlink ti-icdi ulink usbprog vsllink) +source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-${pkgver/_/-}.tar.bz2) +md5sums=('7cbf6b556f020298eab80df94b73d52c') build() { - cd $pkgname-$pkgver - export CFLAGS="-I/usr/include/libftdi1" + cd $pkgname-${pkgver/_/-} + export LIBFTDI_CFLAGS="-I/usr/include/libftdi1" + export LIBFTDI_LIBS="-lftdi1" ./configure --prefix=/usr ${_features[@]/#/--enable-} --disable-werror - make + make LIBS="-ldl -lftdi1" } package() { - cd $pkgname-$pkgver + cd $pkgname-${pkgver/_/-} make DESTDIR="$pkgdir" install } -- cgit v1.2.3-54-g00ecf