blob: fcab316d12f01efc77044bd5bf4ce94d02fdf7d5 (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
# Maintainer: yhfudev <yhfudev ta gmail dot com>
# Contributor: veox <veox ta wemakethings dot net>
# Contributor: Nick Østergaard <oe.nick at gmail dot com>
# Contributor: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
# Contributor: Matthias Bauch <matthias.bauch@gmail.com>
# Contributor: Laszlo Papp <djszapi2 at gmail com>
# Contributor: Samuel Tardieu <sam@rfc1149.net>
pkgname=openocd-git
_gitname=openocd-git
pkgver=0.9.0.r44.g3edb157
pkgrel=1
pkgdesc="Debugging, in-system programming and boundary-scan testing for embedded target devices (git version)"
arch=('i686' 'x86_64' 'arm')
url="http://openocd.org"
license=('GPL')
depends=('libftdi' 'libftdi-compat' 'libusb' 'libusb-compat' 'hidapi' )
makedepends=('git' 'automake>=1.11' 'autoconf' 'libtool' 'tcl')
options=(!strip)
install=openocd-git.install
provides=('openocd')
conflicts=('openocd')
source=(
"${_gitname}::git://git.code.sf.net/p/openocd/code"
#"openocd-0.9.0-exit-clean.patch"
)
md5sums=(
'SKIP'
)
sha1sums=(
'SKIP'
)
# Specify desired features and device support here. A list can be
# obtained by running ./configure in the source directory.
_features=(
aice
amtjtagaccel
armjtagew
at91rm9200
bcm2835gpio
buspirate
cmsis-dap
dummy
ep93xx
ftdi
gw16012
ioutil
jlink
jtag_vpi
legacy-ft2232_libftdi
oocd_trace
opendous
openjtag_ftdi
osbdm
parport
presto_libftdi
remote-bitbang
rlink
stlink
sysfsgpio
ti-icdi
ulink
usb-blaster-2
usb_blaster_libftdi
usbprog
vsllink
#parport-giveio
#zy1000
#zy1000-master
)
pkgver_git_bak() {
cd "${srcdir}/${pkgname}"
local ver="$(git show | grep commit | awk '{print $2}' )"
#printf "r%s" "${ver//[[:alpha:]]}"
echo ${ver:0:7}
}
pkgver_git() {
cd "${srcdir}/${pkgname}"
git describe --tags --long | sed -E 's/^v//;s/([^-]*-g)/r\1/;s/-/./g'
}
pkgver_svn() {
cd "${srcdir}/${pkgname}"
#printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
local ver="$(svn info | grep Revision | awk '{print $2}' )"
#printf "r%s" "${ver//[[:alpha:]]}"
echo ${ver:0:7}
}
pkgver() {
pkgver_git
}
prepare() {
cd "$srcdir/${_gitname}"
#patch -p1 <$srcdir/openocd-0.9.0-exit-clean.patch
}
build() {
cd "$srcdir/${_gitname}"
./bootstrap
./configure --prefix=/usr \
--enable-maintainer-mode \
--disable-werror \
${_features[@]/#/--enable-} \
$(NULL)
#make clean
make
}
package() {
cd "$srcdir/${_gitname}"
make DESTDIR=${pkgdir} install
rm -rf ${srcdir}/$_gitname-build
rm -rf $pkgdir/usr/share/info/dir
}
|