From 88f9886de50562f083fa45359821567b0a880ea0 Mon Sep 17 00:00:00 2001 From: Nicolás Reynolds Date: Tue, 29 Apr 2014 04:05:57 +0000 Subject: Tue Apr 29 04:01:38 UTC 2014 --- community/openocd/PKGBUILD | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'community/openocd') diff --git a/community/openocd/PKGBUILD b/community/openocd/PKGBUILD index 8cb9c97c0..6e39f7404 100644 --- a/community/openocd/PKGBUILD +++ b/community/openocd/PKGBUILD @@ -1,12 +1,12 @@ -# $Id: PKGBUILD 109969 2014-04-22 15:34:00Z spupykin $ +# $Id: PKGBUILD 110348 2014-04-28 09:59:02Z spupykin $ # Contributor: Bartłomiej Piotrowski # Contributor: Matthias Bauch # Contributor: Laszlo Papp # Contributor: Samuel Tardieu pkgname=openocd -pkgver=0.8.0_rc1 -pkgrel=4 +pkgver=0.8.0 +pkgrel=1 pkgdesc='Debugging, in-system programming and boundary-scan testing for embedded target devices' arch=('i686' 'x86_64') url='http://openocd.berlios.de' @@ -16,17 +16,23 @@ options=(!strip) install=openocd.install _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') +md5sums=('6d83c34763a5f1d1ac7ad83c5a11f4fb') + +prepare() { + cd $pkgname-${pkgver/_/-} + sed -i 's|ftdi_new();|(void*)12345;|g' configure{,.ac} +} build() { cd $pkgname-${pkgver/_/-} - export LIBFTDI_CFLAGS="-I/usr/include/libftdi1" - export LIBFTDI_LIBS="-lftdi1" + libtoolize + autoreconf ./configure --prefix=/usr ${_features[@]/#/--enable-} --disable-werror - make LIBS="-ldl -lftdi1" + make } package() { cd $pkgname-${pkgver/_/-} make DESTDIR="$pkgdir" install + (cd $pkgdir/usr/share/openocd/scripts/target && mv 1986*.cfg 1986be1t.cfg) } -- cgit v1.2.3-54-g00ecf