From 8fbc0076a4827ddc6af92e0b9daa4c4c31450808 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 19 Jul 2013 01:10:32 -0700 Subject: Fri Jul 19 01:09:18 PDT 2013 --- community/avr-gdb/PKGBUILD | 55 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) create mode 100644 community/avr-gdb/PKGBUILD (limited to 'community/avr-gdb/PKGBUILD') diff --git a/community/avr-gdb/PKGBUILD b/community/avr-gdb/PKGBUILD new file mode 100644 index 000000000..4cb5e63e2 --- /dev/null +++ b/community/avr-gdb/PKGBUILD @@ -0,0 +1,55 @@ +# 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.5.1 +pkgrel=1 +pkgdesc="The GNU Debugger for AVR" +arch=('i686' 'x86_64') +url="http://www.gnu.org/software/gdb/" +license=('GPL3') +depends=('python2') +options=('!libtool') +source=(http://ftp.gnu.org/gnu/gdb/${_pkgname}-${pkgver}.tar.bz2) + +build() { + cd ${srcdir}/${_pkgname}-${pkgver} + + unset LDFLAGS + export CFLAGS="-O2 -pipe" + export CPPFLAGS="-O2 -pipe" + export CXXFLAGS="$CFLAGS" + + ./configure \ + --disable-nls \ + --enable-languages=c,c++ \ + --infodir=/usr/share/info \ + --libdir=/usr/lib \ + --libexecdir=/usr/lib \ + --mandir=/usr/share/man \ + --prefix=/usr \ + --program-prefix=avr- \ + --target=avr \ + --with-python=/usr/bin/python2 \ + --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 +} + +md5sums=('3f48f468b24447cf24820054ff6e85b1') -- cgit v1.2.3-54-g00ecf