From 941550cbc215d608bd18439f99500b74fbb80f0d Mon Sep 17 00:00:00 2001 From: root Date: Tue, 2 Oct 2012 01:06:16 -0700 Subject: Tue Oct 2 01:06:06 PDT 2012 --- community-staging/avr-gdb/PKGBUILD | 50 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 community-staging/avr-gdb/PKGBUILD (limited to 'community-staging') diff --git a/community-staging/avr-gdb/PKGBUILD b/community-staging/avr-gdb/PKGBUILD new file mode 100644 index 000000000..2dbb56ee0 --- /dev/null +++ b/community-staging/avr-gdb/PKGBUILD @@ -0,0 +1,50 @@ +# Maintainer: schuay +# Contributor: Ivan Sichmann Freitas +# Contributor: Laszlo Papp +# Contributor: Gerardo Exequiel Pozzi +# Contributor: Vladimir Cerny +# Contributor: 4javier <4javieregATgmailDOTcom> + +pkgname=avr-gdb +_pkgname=gdb +pkgver=7.4 +pkgrel=2 +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 +} -- cgit v1.2.3-54-g00ecf