updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / istmusic / PKGBUILD
blob7ebef4d052c56aac581ed7ae3585a8dbbd916fd8
1 # Maintainer: Jorge Lorenzo <jorgelg AT tid DOT es>
2 pkgname=istmusic
3 pkgver=1.0.0
4 pkgrel=1
5 pkgdesc="Context-aware self-adaptive middleware for mobile applications"
6 arch=(any)
7 url="http://ist-music.berlios.de"
8 license=(LGPL2.1)
9 depends=(java-runtime)
10 source=('istmusic.sh'
11         'istmusic.desktop'
12         'istmusic.png'
13         "http://download.berlios.de/ist-music/music-middleware-bin-$pkgver.zip")
14 md5sums=('83a318791c9eeac8a0883e2e911b93f7'
15          '1858e177fe6b4d4a86bb841174b825fe'
16          'cecbdbb2ba7cbb77d897fad7c8cf560a'
17          '7e46b6706dd6715702ce643ee04aced2')
19 build() {
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
29   # Remove the scripts
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