diff options
author | root <root@rshg054.dnsready.net> | 2011-12-17 23:14:43 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-12-17 23:14:43 +0000 |
commit | 146025aa1c838c12fa7b4873414da73816bfb6bd (patch) | |
tree | 22bcdae4c400322b756f2f4cc360de8c08b946a4 /community/openocd | |
parent | 492f7c22a61fdb0488000da9f66d68e11bb43918 (diff) |
Sat Dec 17 23:14:43 UTC 2011
Diffstat (limited to 'community/openocd')
-rw-r--r-- | community/openocd/PKGBUILD | 33 | ||||
-rw-r--r-- | community/openocd/openocd.install | 22 |
2 files changed, 55 insertions, 0 deletions
diff --git a/community/openocd/PKGBUILD b/community/openocd/PKGBUILD new file mode 100644 index 000000000..889755cbc --- /dev/null +++ b/community/openocd/PKGBUILD @@ -0,0 +1,33 @@ +# 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.5.0 +pkgrel=2 +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") +md5sums=('43434c2b5353c9b853278b8bff22cb1a') + +# what features should be enabled on build +# 'ecos','zy1000' seams not to be supported on linux + +_features=(parport ft2232_libftdi amtjtagaccel ep93xx at91rm9200 gw16012 presto_libftdi usbprog oocd_trace jlink vsllink rlink arm-jtag-ew buspirate) + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + ./configure --prefix=/usr ${_features[@]/#/--enable-} --disable-werror + make +} + +package() { + cd "${srcdir}/${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: |