blob: ba22c2407ddec8e43584ed4df48320912772efd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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
}
|