summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81d325ea06a7511afd555f3c167243d8fc2a0f65 (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
# Maintainer: effeffe <filippo dot falezza at outlook dot it>
# Maintainer: Zookah <zookah77 at gmail dot com>
# Maintainer: Ydallilar <yigit dot dallilar at gmail dot com>
# Contributor: Qinq-net

pkgname=osp-tracker
pkgver=5.1.5
arch=('x86_64')
pkgrel=2
pkgdesc='Tracker video analysis and modeling tool'
url='http://physlets.org/tracker/'
license=('GPL3')
depends=('gtk2'
         'gconf'
         'java-runtime')
makedepends=('xdg-user-dirs' 'xdg-utils')
_runname="Tracker-${pkgver}-linux-64bit-installer.run"
source=("${url}/installers/${_runname}"
        "tracker.sh"
        "tracker.desktop")
md5sums=('3f07dbd33fdff6b6bd7279f5849d8855'
         '4f457c6b8231a48eb3cd302c7629fd9d'
         '805138863c7eb51258022e4d66edab92')

package() {

  echo "${pkgdir}"
  export XDG_UTILS_INSTALL_MODE=user
  msg2 'Starting Tracker installer'
  chmod +x "./${_runname}"
  [ -f ~/.config/user-dirs.dirs ] || xdg-user-dirs-update
  ./${_runname} \
	  --mode unattended \
	  --tracker-home "${pkgdir}/opt/tracker" \
	  --experiments-home "${pkgdir}/opt/tracker/share" \
	  --enable-components Experiments \
	  --unattendedmodeui none || true #ignore errors due to attempts to copy files to /usr/share/applications

  msg2 'Creating desktop file and symlinks'
  install -D -m755 "tracker.sh" "${pkgdir}/usr/bin/${pkgname}"
  install -D -m755 "tracker.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop"
  install -D -m644 "${pkgdir}/opt/tracker/tracker_icon48.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png"

}