updated on Thu Jan 19 20:01:47 UTC 2012
[aur-mirror.git] / avrdude-serjtag / PKGBUILD
blob62f519b823b9cc24b79f7c854f2a3bf9ce5e16d1
1 # Contributor: Corrado Primier <bardo@aur.archlinux.org>
2 # Contributor: Alexander 'hatred' Drozdov <adrozdoff@gmail.com>
4 pkgname=avrdude-serjtag
5 _pkgname=avrdude
6 pkgver=5.10
7 pkgrel=2
8 pkgdesc="Download/upload/manipulate the ROM and EEPROM contents of AVR microcontrollers. With FTDI BitBang support (via proprietary libftd2xx)"
9 arch=('i686' 'x86_64')
10 url="http://www.nongnu.org/avrdude/"
11 license=('GPL')
12 depends=('libusb' 'readline' 'libftd2xx')
13 conflicts=('avrdude' 'avrdude-ftdi')
14 replaces=('avrdude' 'avrdude-ftdi')
15 provides=('avrdude')
16 source=(http://download.savannah.gnu.org/releases/avrdude/${_pkgname}-${pkgver}.tar.gz
17         patch-avr910.c.diff
18         patch-avrdude.conf.in.diff
19         patch-config_gram.y.diff
20         patch-ft245r.c.diff
21         patch-ft245r.h.diff
22         patch-lexer.l.diff
23         patch-Makefile.in.diff
24         patch-serjtag.c.diff
25         patch-serjtag.h.diff
26         clean-reset-pin.diff)
28 build() {
29   cd ${srcdir}/${_pkgname}-${pkgver}
31   for i in  \
32             patch-avr910.c.diff \
33             patch-avrdude.conf.in.diff \
34             patch-config_gram.y.diff \
35             patch-ft245r.c.diff \
36             patch-ft245r.h.diff \
37             patch-lexer.l.diff \
38             patch-Makefile.in.diff \
39             patch-serjtag.c.diff \
40             patch-serjtag.h.diff \
41             clean-reset-pin.diff
42   do
43     patch -Np0 < ../$i || true
44   done
46   ./configure CFLAGS="$CFLAGS -g -O2 -DSUPPORT_FT245R" LIBS="-lftd2xx" \
47               --mandir=/usr/share/man --prefix=/usr --sysconfdir=/etc
48   make
49   make DESTDIR=${pkgdir} install
51 md5sums=('69b082683047e054348088fd63bad2ff'
52          'f6c78bff5350fb11b3058feeb7b8c60a'
53          '888315bd19d5ba6d00730814cc519083'
54          '2fa1ad69895c305cdcf6d7ff164694fe'
55          '8bbe4423ef28098c7227d254503926b4'
56          '52f2ffb802d3f75c6011bde111fd5662'
57          'b71cbf76522cc0b1dc7e453405548b27'
58          '762a775232aca1275c09c3fc65eccc0a'
59          '59cf0c477edf63be013c32e53385d01f'
60          'ecd2eb9d3d12cecd33470b5b34b4b5e3'
61          'aad0a79101876c44eda65b5e2e6aac2a')