summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6a8eedba007635e16c416b190612338d719e4f07 (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
# Maintainer: Peter Ivanov <ivanovp@gmail.com>
# $Id: PKGBUILD 84937 2010-07-05 17:46:04Z eric $
# Contributor: Tobias Powalowski <tpowa@archlinux.org>

pkgname=urjtag-svn
pkgver=0.10.r2056
pkgrel=1
pkgdesc="Enhanced, modern tool for communicating over JTAG with flash chips, CPUs,and many more"
arch=("i686" "x86_64")
url="http://urjtag.org/"
license=("GPL2" "LGPL2.1")
depends=('libftd2xx')
makedepends=('svn' 'gcc' 'libftd2xx' 'flex' 'bison')
#makedepends=(svn gcc flex bison)
conflicts=('urjtag')
options=('!strip')
source=('svn://svn.code.sf.net/p/urjtag/svn/trunk'
        'urjtag_libftd2xx.patch')
md5sums=('SKIP'
         '366620fd96427e69e37dd761dd173be9')

pkgver() {
    cd trunk/urjtag
    local ver="$(svnversion)"
    printf "0.10.r%s" "${ver//[[:alpha:]]}"
}

build() {
  cd "$srcdir/trunk/urjtag"
#  cd "$srcdir/$pkgname-$pkgver/trunk/urjtag"
#  if [ ! -f _patched ]; then
#    patch -p1 <../../urjtag_libftd2xx.patch
#    touch _patched
#  fi
  if [ ! -f ./configure ]; then
    ./autogen.sh
  fi
  ./configure --prefix=/usr
#  ./configure --prefix=/usr --without-ftd2xx
#  ./configure --prefix=/usr CFLAGS="-Wno-error=unused-but-set-variable"
  make
}

package() {
  cd "$srcdir/trunk/urjtag"
  make DESTDIR="$pkgdir" install
}