blob: 7bf27924057a625f8ee31781c49a03d09efb5e1c (
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
|
# Maintainer: Alexis Polti <ArchSegger at gmail dot com>
# Maintainer: pzl <alsoelp at gmail dot com>
pkgname=ozone
pkgver=2.16f
pkgrel=1
epoch=2
pkgdesc="Segger Ozone JLink debugger for Linux"
arch=('i686' 'x86_64')
license=('custom')
groups=('jlink')
replaces=('jlink-debugger')
conflicts=('jlink-debugger')
provides=('jlink-debugger')
depends=('qt4' 'jlink-software-and-documentation>=5.10n')
source_x86_64=("Ozone_Linux_V${pkgver/./}_x86_64.tgz::https://www.segger.com/downloads/jlink/Ozone_Linux_V${pkgver/./}_x86_64.tgz")
source_i686=("Ozone_Linux_V${pkgver/./}_i686.tgz::https://www.segger.com/downloads/jlink/Ozone_Linux_V${pkgver/./}_i386.tgz")
md5sums_i686=('d6b32cf92a4d915b037ab29eebd436bf')
md5sums_x86_64=('9709cd9ce0bd427b187b0a9f6e3ec042')
url="https://www.segger.com/jlink-software.html"
package(){
if [ ${CARCH} = "i686" ]; then
mv Ozone_Linux_V${pkgver/./}_i386 Ozone
else
mv Ozone_Linux_V${pkgver/./}_x86_64 Ozone
fi
# Match package placement from their .deb, in /opt
install -dm755 "${pkgdir}/opt/SEGGER/Ozone" \
"${pkgdir}/usr/share/licenses/${pkgname}" \
"${pkgdir}/usr/lib/" \
"${pkgdir}/usr/bin/" \
"${pkgdir}/usr/share/doc/${pkgname}/"
cd ${srcdir}/Ozone*
# Remove un-needed files
find . -name ".svn" | xargs rm -rf
# Bulk copy everything except libs
cp --preserve=mode -r Ozone Plugins Doc Config Lib "${pkgdir}/opt/SEGGER/Ozone"
# Create links where needed
ln -s /opt/SEGGER/Ozone/Doc/License.txt "${pkgdir}/usr/share/licenses/${pkgname}/"
ln -s /opt/SEGGER/Ozone/Ozone "${pkgdir}/usr/bin"
for f in Doc/*; do
ln -s /opt/SEGGER/Ozone/"$f" "${pkgdir}/usr/share/doc/${pkgname}"
done
}
|