1 # Maintainer: Jorge Lorenzo <jorgelg AT tid DOT es>
5 pkgdesc="Context-aware self-adaptive middleware for mobile applications"
7 url="http://ist-music.berlios.de"
13 "http://download.berlios.de/ist-music/music-middleware-bin-$pkgver.zip")
14 md5sums=('83a318791c9eeac8a0883e2e911b93f7'
15 '1858e177fe6b4d4a86bb841174b825fe'
16 'cecbdbb2ba7cbb77d897fad7c8cf560a'
17 '7e46b6706dd6715702ce643ee04aced2')
20 cd "$srcdir/music-middleware-bin-$pkgver" || return 1
22 # Copy the binary structure
23 mkdir -p "$pkgdir/usr/share/java/istmusic" || return 1
24 cp -R * "$pkgdir/usr/share/java/istmusic" || return 1
26 # Rename the linux configuration with the default name
27 mv "$pkgdir/usr/share/java/istmusic/conf/config_linux.properties" "$pkgdir/usr/share/java/istmusic/conf/config.properties" || return 1
30 rm "$pkgdir/usr/share/java/istmusic/felix.sh"
31 rm "$pkgdir/usr/share/java/istmusic/felix.bat"
33 # Copy the script to launch the MUSIC middleware
34 cp "$srcdir/istmusic.sh" "$pkgdir/usr/share/java/istmusic" || return 1
35 chmod 755 "$pkgdir/usr/share/java/istmusic/istmusic.sh"
36 mkdir "$pkgdir/usr/bin" || return 1
37 ln -s "../share/java/istmusic/istmusic.sh" "$pkgdir/usr/bin/istmusic" || return 1
39 # Copy the icon and menu entry
40 mkdir -p "$pkgdir/usr/share/applications" || return 1
41 cp "$srcdir/istmusic.desktop" "$pkgdir/usr/share/applications" || return 1
42 mkdir -p "$pkgdir/usr/share/pixmaps" || return 1
43 cp "$srcdir/istmusic.png" "$pkgdir/usr/share/pixmaps" || return 1