diff options
author | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2013-08-13 01:33:19 -0700 |
commit | 7a65a910b77ad191d69881098c47f9b0c852d92e (patch) | |
tree | 9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/openocd | |
parent | 60da6abff6c9577a783d72865f11de7a585e912e (diff) |
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/openocd')
-rw-r--r-- | community/openocd/PKGBUILD | 31 | ||||
-rw-r--r-- | community/openocd/openocd.install | 22 |
2 files changed, 53 insertions, 0 deletions
diff --git a/community/openocd/PKGBUILD b/community/openocd/PKGBUILD new file mode 100644 index 000000000..6c5f0846d --- /dev/null +++ b/community/openocd/PKGBUILD @@ -0,0 +1,31 @@ +# $Id: PKGBUILD 89932 2013-05-05 20:07:45Z bpiotrowski $ +# Maintainer: Bartłomiej Piotrowski <barthalion@gmail.com> +# 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=1 +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') +options=(!strip !libtool) +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) + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr ${_features[@]/#/--enable-} --disable-werror + make +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="$pkgdir" install +} diff --git a/community/openocd/openocd.install b/community/openocd/openocd.install new file mode 100644 index 000000000..ac561dd8c --- /dev/null +++ b/community/openocd/openocd.install @@ -0,0 +1,22 @@ +infodir=usr/share/info +filelist=(openocd.info openocd.info-1 openocd.info-2) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null + done +} + +# vim:set ts=2 sw=2 et: |