diff options
author | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-29 04:05:57 +0000 |
---|---|---|
committer | Nicolás Reynolds <fauno@endefensadelsl.org> | 2014-04-29 04:05:57 +0000 |
commit | 88f9886de50562f083fa45359821567b0a880ea0 (patch) | |
tree | 9d6e6861bee113342e27578c9024b17a3d4ceb5f /community/openocd | |
parent | 84fbb975eaab5e85082b96147a85031f1912646e (diff) |
Tue Apr 29 04:01:38 UTC 2014
Diffstat (limited to 'community/openocd')
-rw-r--r-- | community/openocd/PKGBUILD | 20 |
1 files changed, 13 insertions, 7 deletions
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 <bpiotrowski@archlinux.org> # Contributor: Matthias Bauch <matthias.bauch@gmail.com> # Contributor: Laszlo Papp <djszapi2 at gmail com> # Contributor: Samuel Tardieu <sam@rfc1149.net> 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) } |