summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 162099e8986c5fa8358352294ce83784cad31909 (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
#
# Maintainer: Uffe Jakobsen <uffe@uffe.org>
#

pkgname=dwire-debug-git
_pkgname=dwire-debug
pkgver=r169.a2830d5
pkgrel=1
pkgdesc="Simple stand-alone debugger for ATtiny 45 and other ATMEL AVR DebugWIRE chips connected directly to an FT232R or similar"
arch=("i686" "x86_64")
url="https://github.com/dcwbrown/dwire-debug"
license=("GPL2")
depends=("gtk3")
conflict=("dwire-debug")
source=("git+https://github.com/dcwbrown/dwire-debug.git")
md5sums=('SKIP')


pkgver() {
  cd "${srcdir}/${_pkgname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare()
{
  cd "${srcdir}/${_pkgname}"
}

build() {
  cd "${srcdir}/${_pkgname}"

  # workaround for non-existing posix streams include file (stropts.h) on linux
  #touch stropts.h
  #make dwdebug CC="gcc -I." || return 1

  make dwdebug || return 1
}

package() {
  cd "${srcdir}/${_pkgname}"
  #make DESTDIR="${pkgdir}/" install
  install -D --mode=0755 dwdebug "${pkgdir}/usr/bin/dwdebug"
}

#
# EOF
#