View difference between Paste ID: RtpstYwW and A03c0Tai
SHOW: | | - or go back to the newest paste.
1
# Maintainer: Julien Nicoulaud <julien.nicoulaud@gmail.com>
2
# Source: https://github.com/nicoulaj/archlinux-packages
3
pkgname=yourkit
4
_version=2014
5-
_build=14104
5+
_build=14110
6
pkgver=${_version}b${_build}
7
pkgrel=1
8
pkgdesc="Java CPU and memory profiler."
9
arch=(i686 x86_64)
10
url="http://www.yourkit.com"
11
license=(custom)
12
depends=(desktop-file-utils bash)
13
optdepends=('intellij-idea-community-edition: A Java IDE that integrates with Yourkit'
14
            'eclipse: A Java IDE that integrates with Yourkit'
15
            'netbeans: A Java IDE that integrates with Yourkit')
16
options=(!strip)
17
install=${pkgname}.install
18
changelog=Changelog
19
source=(http://www.yourkit.com/download/yjp-${_version}-build-${_build}-linux.tar.bz2)
20-
md5sums=('317597dfc5f2d13472a83eb4abca502c')
20+
md5sums=('541525484e2b9d088d968edbf9f22d20')
21
22
build() {
23
  msg2 "Generate scripts for /usr/bin..."
24
  cat <<EOF > "${srcdir}"/${pkgname}.sh
25
#!/bin/sh
26
cd /opt/${pkgname}/bin && sh yjp.sh
27
EOF
28
29
  msg2 "Generate desktop application entry for recorder..."
30
  cat > "${srcdir}"/${pkgname}.desktop << EOF
31
[Desktop Entry]
32
Name=Yourkit
33
Comment=${pkgdesc}
34
Exec=/usr/bin/${pkgname} %u
35
Icon=/opt/${pkgname}/bin/yjp.ico
36
Terminal=false
37
Type=Application
38
Categories=Application;Development;
39
EOF
40
}
41
42
package() {
43
  msg2 "Install the assembly at /opt/${pkgname}..."
44
  install -dm755                                      "${pkgdir}/opt/${pkgname}"
45
  cp -a "${srcdir}"/yjp-${_version}-build-${_build}/* "${pkgdir}/opt/${pkgname}"
46
47
  msg2 "Install an executable at /usr/bin/${pkgname}..."
48
  install -Dm755 "${srcdir}/${pkgname}.sh" "${pkgdir}/usr/bin/${pkgname}"
49
50
  msg2 "Install links to the documentation resources at /usr/share/doc/${pkgname}..."
51
  install -dm755                "${pkgdir}/usr/share/doc/${pkgname}"
52
  ln -s /opt/${pkgname}/probes  "${pkgdir}/usr/share/doc/${pkgname}/probes"
53
  ln -s /opt/${pkgname}/samples "${pkgdir}/usr/share/doc/${pkgname}/samples"
54
55
  msg2 "Install link to the config file in /etc..."
56
  install -dm755                    "${pkgdir}"/etc
57
  ln -s /opt/${pkgname}/bin/yjp.ini "${pkgdir}"/etc/${pkgname}.ini
58
59
  msg2 "Install links to copyright resources at /usr/share/licenses/${pkgname}..."
60
  install -dm755                            "${pkgdir}/usr/share/licenses/${pkgname}"
61
  ln -s /opt/${pkgname}/license.html        "${pkgdir}/usr/share/licenses/${pkgname}/"
62
  ln -s /opt/${pkgname}/license-redist.txt  "${pkgdir}/usr/share/licenses/${pkgname}/"
63
64
  msg2 "Install desktop application entry in /usr/share/applications..."
65
  install -Dm644 "${srcdir}"/${pkgname}.desktop "${pkgdir}"/usr/share/applications/${pkgname}.desktop
66
}
67
68
# vim:set ts=2 sw=2 et: