updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / maya8.5 / PKGBUILD
blob45da9aec040cb123a0a6ea711cf343e93bee07a8
1 # Contributor: Frozen Fox <frozenfoxz@gmail.com>
3 pkgname=maya8.5
4 pkgver=8.5
5 pkgrel=4
6 pkgdesc="Professional 3d Animation"
7 arch=('i686' 'x86_64')
8 license=('Proprietary')
9 url="http://usa.autodesk.com/"
10 depends=('tcsh' 'libxp' 'libxpm' 'libxinerama')
11 provides=()
12 conflicts=()
13 makedepends=('rpmextract')
14 source=('Maya-8.5-111.i686.rpm'
15         'Maya-docs_en_US-8.5-119.i686.rpm'
16         'AWCommon-10.80-13.i686.rpm'
17         'AWCommon-server-10.80-13.i686.rpm')
18 md5sums=('e5acca72e0f207638adb990f1223dc71'
19          '7d355ba6ce780d0eacf485308c144345'
20          '29a29fe99b25d5006e205e0007f36a3c'
21          '1ff04c9cc79593b91fa96cadc8d6d55f')
22 [ "$CARCH" = "x86_64" ] && source=('Maya64-8.5-159.x86_64.rpm'
23                                    'Maya64-docs_en_US-8.5-123.x86_64.rpm'
24                                    'AWCommon-10.80-15.x86_64.rpm'
25                                    'AWCommon-server-10.80-15.x86_64.rpm')
26 [ "$CARCH" = "x86_64" ] && md5sums=('1f055fd801fc66a4517355528da8025a'
27                                     'ca71dc6d7a07dee8af3a0c7c5f859395'
28                                     '3647012826d80c5577191d8a607365b6'
29                                     '19a9160e2b7961f08aa19277f3553b84')
30 options=('emptydirs')
31 install=('maya.install')
32 _archext=""
33 [ "$CARCH" = "x86_64" ] && _archext="-x64"
35 build() {
36   cd ${srcdir}
38   msg2 "Extracting packages..."
39   rpmextract.sh ${source[0]}
40   rpmextract.sh ${source[1]}
41   rpmextract.sh ${source[2]}
42   rpmextract.sh ${source[3]}
44   msg2 "Copying package data..."
45   # Create necessary paths
46   install -d ${pkgdir}/usr
47   install -d ${pkgdir}/usr/{bin,local}
48   install -d ${pkgdir}/usr/local/bin
49   install -d ${pkgdir}/usr/share
50   install -d ${pkgdir}/usr/share/{applications,desktop-directories,pixmaps}
51   install -d ${pkgdir}/var
52   install -d -m777 ${pkgdir}/var/flexlm
53   install -d -m1777 ${pkgdir}/tmp
54   # Copy the pkg files
55   cp -R ./usr/aw ${pkgdir}/usr || return 1
56   cp -R ./usr/autodesk ${pkgdir}/usr || return 1
57   mv ${pkgdir}/usr/autodesk/maya${pkgver}${_archext}/desktop/Autodesk-Maya.desktop \
58      ${pkgdir}/usr/share/applications/Autodesk-Maya.desktop
59   mv ${pkgdir}/usr/autodesk/maya${pkgver}${_archext}/desktop/Autodesk-Maya.directory \
60      ${pkgdir}/usr/share/desktop-directories/Autodesk-Maya.directory
61   mv ${pkgdir}/usr/autodesk/maya${pkgver}${_archext}/desktop/Maya.png \
62      ${pkgdir}/usr/share/pixmaps/maya.png
63   # Fix broken icons and paths
64   sed -i 's|Exec=/usr/autodesk/maya|Exec=/usr|g' \
65           ${pkgdir}/usr/share/applications/Autodesk-Maya.desktop
66   sed -i 's|Icon=Maya.png|Icon=/usr/share/pixmaps/maya.png|g' \
67           ${pkgdir}/usr/share/applications/Autodesk-Maya.desktop
68   sed -i 's|Icon=Maya85.png|Icon=/usr/share/pixmaps/maya.png|g' \
69           ${pkgdir}/usr/share/applications/Autodesk-Maya.desktop
71   msg2 "Creating symbolic links..."
72   # Unsure if all of these are necessary
73   cd ${pkgdir}/usr
74   ln -s ../usr/autodesk/maya${pkgver}${_archext} maya
75   cd ${pkgdir}/usr/bin
76   ln -s ../../usr/autodesk/maya${pkgver}${_archext}/bin/Maya${pkgver} maya
77   cd ${pkgdir}/usr/local/bin
78   ln -s ../../../usr/autodesk/maya${pkgver}${_archext}/bin/fcheck fcheck
79   ln -s ../../../usr/autodesk/maya${pkgver}${_archext}/bin/Maya${pkgver} maya
80   ln -s ../../../usr/autodesk/maya${pkgver}${_archext}/bin/imgcvt imgcvt
81   ln -s ../../../usr/autodesk/maya${pkgver}${_archext}/bin/Render Render
82   cd ${pkgdir}/usr
83   ln -s ../tmp tmp