updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / moonlight3d / PKGBUILD
blob9556a73ef7150e93a51052bfde79f42fcae4605b
1 # Maintainer: Lukas Jirkovsky <l.jirkovsky@gmail.com>
2 pkgname=moonlight3d
3 pkgver=0.2.3
4 pkgrel=1
5 pkgdesc="Modern, flexible and extensible modelling and animation tool"
6 arch=('i686' 'x86_64')
7 url="http://www.moonlight3d.eu/"
8 license=('GPL')
9 depends=('java-runtime' 'qt' 'libstdc++5' 'libgl')
10 #depends=('qtjambi') # outdated on AUR
11 optdepends=('sunflow: for rendering')
12 source=(http://dev.moonlight3d.eu/downloads/moonlight-$pkgver-Linux-$CARCH.tar.bz2 \
13         moonlight.sh mlbatch.sh moonlight3d.desktop)
14 if [ $CARCH = "i686" ]; then
15   md5sums=('66a38f8f72f52dbf6d99c78d16352feb'
16            'b313a7a9f5f6143c49628989f89aa53e'
17            '6741f7d5c9df0f856f6a156230306284'
18            'f77d8f13d103dbbf3053eac688deadc4')
19 elif [ $CARCH = "x86_64" ]; then
20   md5sums=('e5b689d9d589d3cfdb91536b0bd86956'
21            'b313a7a9f5f6143c49628989f89aa53e'
22            '6741f7d5c9df0f856f6a156230306284'
23            'f77d8f13d103dbbf3053eac688deadc4')
26 build() {
27   cd "$srcdir"/Moonlight-$pkgver-Linux-$CARCH/
29   install -D -m644 ml3d.jar "$pkgdir"/usr/share/java/$pkgname/ml3d.jar
30 #  cp -r {icons,lib,plugins,propsheet,scripts} "$pkgdir"/usr/share/java/$pkgname
31   mkdir -p "$pkgdir"/usr/share/$pkgname
32   cp -r {icons,plugins,propsheet,scripts} "$pkgdir"/usr/share/$pkgname
33   cp -r lib "$pkgdir"/usr/share/java/$pkgname
35   # clean from libraries that are already in system
36   rm "$pkgdir"/usr/share/java/$pkgname/lib/Linux/$CARCH/libQt*
37   rm "$pkgdir"/usr/share/java/$pkgname/lib/Linux/$CARCH/libstdc++.so.5
38   rm "$pkgdir"/usr/share/java/$pkgname/lib/jar/{janino,sunflow}.jar
39   #rm "$pkgdir"/usr/share/java/$pkgname/lib/Linux/$CARCH/qtjambi.jar #outdated on AUR
41   install -D -m755 "$srcdir"/moonlight.sh "$pkgdir"/usr/bin/moonlight
42   install -D -m755 "$srcdir"/mlbatch.sh "$pkgdir"/usr/bin/mlbatch
44   install -D -m644 "$srcdir"/$pkgname.desktop "$pkgdir"/usr/share/applications/$pkgname.desktop
47 # vim:set ts=2 sw=2 et: