summaryrefslogtreecommitdiff
path: root/community/openocd
diff options
context:
space:
mode:
authorNicolás Reynolds <fauno@endefensadelsl.org>2014-04-23 03:27:46 +0000
committerNicolás Reynolds <fauno@endefensadelsl.org>2014-04-23 03:27:46 +0000
commit0459e6459ee534bf22ab8a5381cd485e6035e9e2 (patch)
tree605a15ed18dc37695caaeb02271fdd06320a00f3 /community/openocd
parentd4b7ceefdfb9c828799749419e8f8f7a36c2d7b8 (diff)
Wed Apr 23 03:24:08 UTC 2014
Diffstat (limited to 'community/openocd')
-rw-r--r--community/openocd/PKGBUILD34
1 files changed, 13 insertions, 21 deletions
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 <barthalion@gmail.com>
+# $Id: PKGBUILD 109969 2014-04-22 15:34:00Z 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.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
}