summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b720897fcb5888069429874b6e5da0a881082020 (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
# Maintainer: Samuel Ace Winchenbach <swinchen at gmail dot com>
pkgname=avrdude-svn
_pkgname=avrdude
pkgrel=1
pkgver=20190105.1429
pkgdesc="AVRDUDE is an utility to download/upload/manipulate the ROM and EEPROM contents of AVR microcontrollers using the in-system programming technique (ISP)."
arch=(i686 x86_64 armv6h armv7h)
url="http://www.nongnu.org/avrdude/"
license=('GPL')
groups=()
depends=('libftdi' 'libusb-compat' 'hidapi')
makedepends=(svn)
optdepends=('elfutils')
provides=('avrdude')
conflicts=('avrdude' 'avrdude-osuisp2-svn')
replaces=()
backup=()
options=()
install=
changelog=
source=("${pkgname}::svn+http://svn.savannah.nongnu.org/svn/avrdude/trunk")
noextract=()
md5sums=('SKIP')

build() {
  cd "${srcdir}/${pkgname}/${_pkgname}"
  ./bootstrap
  ./configure --mandir=/usr/share/man \
    --prefix=/usr \
    --sysconfdir=/etc \
    --enable-linuxgpio
  make
}

package() {
  cd "${srcdir}/${pkgname}/${_pkgname}"

  make DESTDIR="${pkgdir}/" install
}

pkgver() {
  cd "${srcdir}/${pkgname}"
  svn info | awk '/Revision/{r=$2}/Date/{gsub(/-/,"");d=$4}END{print d"."r}'
}