summaryrefslogtreecommitdiff
path: root/community/avr-gdb
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-07-14 00:01:45 +0000
committerroot <root@rshg054.dnsready.net>2012-07-14 00:01:45 +0000
commite0f65a739c6445de07de1585e72c230958d8f011 (patch)
treed6cfcd449768dbc82f5d5d539ea02333340652b7 /community/avr-gdb
parent2aa5510e030a6ac8ec723dfd915a394b888e21c1 (diff)
Sat Jul 14 00:01:45 UTC 2012
Diffstat (limited to 'community/avr-gdb')
-rw-r--r--community/avr-gdb/PKGBUILD50
1 files changed, 50 insertions, 0 deletions
diff --git a/community/avr-gdb/PKGBUILD b/community/avr-gdb/PKGBUILD
new file mode 100644
index 000000000..ba22c2407
--- /dev/null
+++ b/community/avr-gdb/PKGBUILD
@@ -0,0 +1,50 @@
+# Maintainer: schuay <jakob.gruber@gmail.com>
+# Contributor: Ivan Sichmann Freitas <ivansichfreitas at gmail dot com>
+# Contributor: Laszlo Papp <djszapi2 at gmail dot com>
+# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>
+# Contributor: Vladimir Cerny <blackvladimir@gmail.com>
+# Contributor: 4javier <4javieregATgmailDOTcom>
+
+pkgname=avr-gdb
+_pkgname=gdb
+pkgver=7.4
+pkgrel=1
+pkgdesc="The GNU Debugger for AVR"
+arch=('i686' 'x86_64')
+url="http://www.gnu.org/software/gdb/"
+license=('GPL3')
+depends=('python')
+options=('!libtool')
+source=(http://ftp.gnu.org/gnu/gdb/${_pkgname}-${pkgver}.tar.bz2)
+md5sums=('95a9a8305fed4d30a30a6dc28ff9d060')
+
+build() {
+ cd ${srcdir}/${_pkgname}-${pkgver}
+
+ unset LDFLAGS
+ export CFLAGS="-O2 -pipe"
+ export CXXFLAGS="$CFLAGS"
+
+ ./configure --prefix=/usr \
+ --target=avr \
+ --disable-nls \
+ --enable-languages=c,c++ \
+ --infodir=/usr/share/info \
+ --libdir=/usr/lib \
+ --program-prefix=avr- \
+ --libexecdir=/usr/lib \
+ --mandir=/usr/share/man \
+ --with-system-readline
+ make
+}
+
+package() {
+ cd ${srcdir}/${_pkgname}-${pkgver}
+
+ make DESTDIR=${pkgdir} install
+
+ rm -f ${pkgdir}/usr/lib/libiberty.a
+ rm -rf ${pkgdir}/usr/share/info
+ rm -rf ${pkgdir}/usr/share/gdb
+ rm -rf ${pkgdir}/usr/include/gdb
+}