1 # Maintainer: Mihai Militaru <mihai dot militaru at xmpp dot ro>
6 pkgdesc="High-end 3D animation package"
8 url="http://www.sidefx.com/"
9 license=('proprietary')
11 makedepends=('bc' 'python2')
13 install=(houdini.install)
16 [ "$CARCH" = "x86_64" ] && barch=x86_64
18 source=(file://${pkgname}-${pkgver}-linux_${barch}_gcc4.4.tar.gz)
19 sha1sums=('bba763e415b05ef74c2d3e9855ff63f47fbb5a90')
20 [ "$CARCH" = "x86_64" ] && sha1sums=('e6df97a584f9f521cfd9829a5dd7b0d8c48e1a4f')
22 source=($source LICENSE houdini.sh houdini.csh)
23 sha1sums=($sha1sums 'f72d8f4079af9c81fe73169b0d59f234f7b3e6d2' 'b0f7809c91805107615ca90aaae1e7fb1257f4cb' '7fb636731b015ad582480436dfc9b16391fe28e8')
25 houdini_pid_file=/var/run/sesinetd_`hostname -s`.pid
26 if [ -f $houdini_pid_file ]; then
27 echo "ERROR: please stop sesinetd server before continuing; if you are sure it is not running, delete file $houdini_pid_file"
32 cd ${pkgname}-${pkgver}-linux_${barch}_gcc4.4
34 # tweaking desktop files
35 sed -i 's|${HFS}|/opt/houdini|g' desktop/sesi_gplay.desktop desktop/sesi_hmaster.desktop desktop/sesi_hescape.desktop desktop/sesi_mplay.desktop desktop/sesi_hkey.desktop
36 sed -i 's|Houdini ${VER_MAJOR}.${VER_MINOR}.${VER_BUILD}|Graphics|g' desktop/sesi_gplay.desktop desktop/sesi_hmaster.desktop desktop/sesi_hescape.desktop desktop/sesi_mplay.desktop
37 sed -i 's|Houdini Administrative Tools ${VER_MAJOR}.${VER_MINOR}.${VER_BUILD}|System|g' desktop/sesi_hkey.desktop
38 install -Dm644 desktop/sesi_gplay.desktop ${pkgdir}/usr/share/applications/sesi_gplay.desktop || return 1
39 install -Dm644 desktop/sesi_hmaster.desktop ${pkgdir}/usr/share/applications/sesi_hmaster.desktop || return 1
40 install -Dm644 desktop/sesi_hescape.desktop ${pkgdir}/usr/share/applications/sesi_hescape.desktop || return 1
41 install -Dm644 desktop/sesi_mplay.desktop ${pkgdir}/usr/share/applications/sesi_mplay.desktop || return 1
42 install -Dm644 desktop/sesi_hkey.desktop ${pkgdir}/usr/share/applications/sesi_hkey.desktop || return 1
43 #install -Dm644 desktop/sesi_houdini.menu ${pkgdir}/etc/xdg/menus/sesi_houdini.menu || return 1
44 #install -Dm644 desktop/houdini_logo.png ${pkgdir}/usr/share/icons/hicolor/48x48/apps/houdini_logo.png || return 1
46 # installing profile files
47 mkdir -p ${pkgdir}/etc/profile.d
48 install -Dm755 ${srcdir}/houdini.sh ${pkgdir}/etc/profile.d/houdini.sh || return 1
49 install -Dm755 ${srcdir}/houdini.csh ${pkgdir}/etc/profile.d/houdini.csh || return 1
51 # fixing the houdini and sesinet install files
52 sed -i "s|/usr/lib/sesi|${pkgdir}/usr/lib/sesi|g" houdini.install || return 1
54 sed -i 's|/bin/sh $SRC/sesinetd.install|/bin/sh $SRC/sesinetd.install --auto-install|g' houdini.install || return 1
55 sed -i "s|/usr/lib/sesi|${pkgdir}/usr/lib/sesi|g" sesinetd.install || return 1
56 sed -i "s|-d /etc/rc.d/init.d|-d /etc/rc.d|g" sesinetd.install || return 1
58 sed -i 's|mv $RCDIRS/init.d/sesinetd $RCDIRS/init.d/sesinetd.old|#mv $RCDIRS/init.d/sesinetd $RCDIRS/init.d/sesinetd.old|g' sesinetd.install || return 1
59 sed -i "s|cp sesinetd.startup \$RCDIRS/init.d/sesinetd|cp sesinetd.startup ${pkgdir}/\$RCDIRS/sesinetd|g" sesinetd.install || return 1
60 sed -i "s|chmod 755 \$RCDIRS/init.d/sesinetd|chmod 755 ${pkgdir}/\$RCDIRS/sesinetd|g" sesinetd.install || return 1
61 sed -i 's|test -d $RCDIRS|#test -d $RCDIRS|g' sesinetd.install || return 1
62 sed -i 's|backupFiles=yes|backupFiles=no|g' sesinetd.install || return 1
64 # running the installer
65 mkdir -p ${pkgdir}/usr/lib/sesi
66 mkdir -p ${pkgdir}/etc/rc.d
67 sh ./houdini.install --no-menus --make-dir ${pkgdir}/opt/houdini || return 1
69 # removing unused houdini files
70 rm -f ${pkgdir}/opt/houdini/houdini_setup || return 1
71 rm -f ${pkgdir}/opt/houdini/houdini_setup_bash || return 1
72 rm -f ${pkgdir}/opt/houdini/houdini_setup_csh || return 1
73 rm -f ${pkgdir}/opt/houdini/houdini.uninstall || return 1
76 install -Dm644 ${srcdir}/LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"