blob: b21ee540b7af3968b45baba5195f3288212efe17 (
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
|
# Maintainer: Alexis Polti <ArchSegger at gmail dot com>
# Maintainer: pzl <alsoelp at gmail dot com>
pkgname=ozone
pkgver=3.38d
pkgrel=0
epoch=30
pkgdesc="Segger Ozone JLink debugger for Linux"
arch=('x86_64')
license=('custom')
groups=('jlink')
replaces=('jlink-debugger')
conflicts=('jlink-debugger')
provides=('jlink-debugger')
depends=('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=("Ozone.desktop" "Ozone.svg")
md5sums_x86_64=('0dc993054e48bcfc677fa8da0801eb82')
md5sums=('d1d2aa1b868487207ad256ebc8235982' 'f7c46fe903305c37f38f846b18318b38')
url="https://www.segger.com/jlink-software.html"
options=(!strip)
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}/" \
"${pkgdir}/usr/share/pixmaps" \
"${pkgdir}/usr/share/applications"
# Install desktop entry
install -Dm644 "Ozone.desktop" "${pkgdir}/usr/share/applications/Ozone.desktop"
install -Dm644 "Ozone.svg" "${pkgdir}/usr/share/pixmaps/Ozone.svg"
cd ${srcdir}/Ozone
# Make permissions right
find . -type d | xargs chmod a+rx
find . -type f | xargs chmod a+r
# Remove un-needed files
find . -name ".svn" | xargs rm -rf
# Bulk copy everything
cp --preserve=mode -r Ozone Plugins Doc Config Lib Ozone.png "${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
}
|