diff options
-rw-r--r-- | .SRCINFO | 24 | ||||
-rw-r--r-- | PKGBUILD | 48 | ||||
-rw-r--r-- | urjtag_libftd2xx.patch | 20 |
3 files changed, 92 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..fd2cf29e4357 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,24 @@ +pkgbase = urjtag-svn + pkgdesc = Enhanced, modern tool for communicating over JTAG with flash chips, CPUs,and many more + pkgver = 0.10.r2040 + pkgrel = 2 + url = http://urjtag.org/ + arch = i686 + arch = x86_64 + license = GPL2 + license = LGPL2.1 + makedepends = svn + makedepends = gcc + makedepends = libftd2xx + makedepends = flex + makedepends = bison + depends = libftd2xx + conflicts = urjtag + options = !strip + source = svn+http://urjtag.svn.sourceforge.net/svnroot/urjtag/trunk + source = urjtag_libftd2xx.patch + md5sums = SKIP + md5sums = 366620fd96427e69e37dd761dd173be9 + +pkgname = urjtag-svn + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a52a8ff43885 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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.r2040 +pkgrel=2 +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+http://urjtag.svn.sourceforge.net/svnroot/urjtag/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 +} + diff --git a/urjtag_libftd2xx.patch b/urjtag_libftd2xx.patch new file mode 100644 index 000000000000..eb4f9a3bef8f --- /dev/null +++ b/urjtag_libftd2xx.patch @@ -0,0 +1,20 @@ +--- urjtag/src/tap/usbconn/libftd2xx.c.ORIG 2011-10-31 10:00:34.746529359 +0100 ++++ urjtag/src/tap/usbconn/libftd2xx.c 2011-10-31 10:03:43.009128467 +0100 +@@ -172,7 +172,7 @@ + + urj_log (URJ_LOG_LEVEL_COMM, + "%sflush end: status %ld, xferred %ld, recvd %ld\n", module, +- status, xferred, recvd); ++ (long int) status, (long int) xferred, (long int) recvd); + + return status != FT_OK ? -1 : xferred; + } +@@ -225,7 +225,7 @@ + } + + urj_log (URJ_LOG_LEVEL_COMM, "%sread end : status %ld, length %d\n", +- module, status, cpy_len + len); ++ module, (long int) status, (int) cpy_len + len); + + return status != FT_OK ? -1 : cpy_len + len; + } |