summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authoraquarius2016-07-25 23:40:56 +0300
committeraquarius2016-07-25 23:40:56 +0300
commitdd3d663e013965e5c645958ca7a4f2e5f974c157 (patch)
treecb24218cadcc0ae68a0dace05eb55610ee5eaf04
parent64121c17899b4cca5f436afe4ede683c48472f81 (diff)
downloadaur-dd3d663e013965e5c645958ca7a4f2e5f974c157.tar.gz
Fix install
-rw-r--r--.SRCINFO1
-rw-r--r--PKGBUILD29
-rw-r--r--maya.install59
3 files changed, 61 insertions, 28 deletions
diff --git a/.SRCINFO b/.SRCINFO
index eed393512df..a03fb98d21f 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -3,6 +3,7 @@ pkgbase = maya
pkgver = 2016_SP5
pkgrel = 1
url = http://www.autodesk.com/products/maya/overview
+ install = maya.install
arch = x86_64
license = custom: unlimited
makedepends = rpmextract
diff --git a/PKGBUILD b/PKGBUILD
index 2fef1814873..769f56cf428 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -8,6 +8,7 @@ license=('custom: unlimited')
depends=('libpng12' 'tcsh' 'libxp' 'openssl' 'libjpeg' 'libtiff')
makedepends=('rpmextract')
conflicts=()
+install=maya.install
source=(http://download.autodesk.com/us/support/files/maya_2016_service_pack_5/Autodesk_Maya_2016_SP5_EN_Linux_64bit.tgz)
md5sums=('5b88676c1c3239ea26b9de656340e974')
@@ -24,31 +25,3 @@ package() {
}
-post_install() {
-
- msg2 "If you have not already done so, you can get your serial number from: http://students.autodesk.com"
- read -p "Please enter your serial number: " SERIALNUMBER
- read -p "Please enter your product id: " PRODUCTID
- echo ""
-
- mkdir /usr/tmp
- chmod 777 /usr/tmp
-
- cp /opt/Autodesk/Adlm/R11/lib64/libadlmPIT.so.11 /usr/lib/libadlmPIT.so.11
- cp /opt/Autodesk/Adlm/R11/lib64/libadlmutil.so.11 /usr/lib/libadlmutil.so.11
-
- echo -e 'MAYA_LICENSE=unlimited\nMAYA_LICENSE_METHOD=standalone' > /usr/autodesk/maya2016/bin/License.env
-
- /usr/autodesk/maya2016/bin/adlmreg -i S $PRODUCTID $PRODUCTID 2016.0.0.F $SERIALNUMBER /var/opt/Autodesk/Adlm/Maya2016/MayaConfig.pit
-
- /opt/Autodesk/Adlm/FLEXnet/bin/install_fnp.sh /opt/Autodesk/Adlm/FLEXnet/bin/FNPLicensingService
-
- ln -s /usr/lib/libssl.so /usr/autodesk/maya2016/lib/libssl.so.10
- ln -s /usr/lib/libcrypto.so /usr/autodesk/maya2016/lib/libcrypto.so.10
-
- ln -s /usr/lib/libjpeg.so /usr/autodesk/maya2016/lib/libjpeg.so.62
- ln -s /usr/lib/libtiff.so /usr/autodesk/maya2016/lib/libtiff.so.3
-
- mkdir /usr/autodesk/maya2016/plugin-backups
- mv /usr/autodesk/maya2016/plug-ins/bifrost /usr/autodesk/maya2016/plugin-backups/
-} \ No newline at end of file
diff --git a/maya.install b/maya.install
new file mode 100644
index 00000000000..49f0712319c
--- /dev/null
+++ b/maya.install
@@ -0,0 +1,59 @@
+# This is a default template for a post-install scriptlet.
+# Uncomment only required functions and remove any functions
+# you don't need (and this header).
+
+## arg 1: the new package version
+#pre_install() {
+ # do something here
+#}
+
+## arg 1: the new package version
+post_install() {
+ msg2 "If you have not already done so, you can get your serial number from: http://students.autodesk.com"
+ read -p "Please enter your serial number: " SERIALNUMBER
+ read -p "Please enter your product id: " PRODUCTID
+ echo ""
+
+ mkdir /usr/tmp
+ chmod 777 /usr/tmp
+
+ cp /opt/Autodesk/Adlm/R11/lib64/libadlmPIT.so.11 /usr/lib/libadlmPIT.so.11
+ cp /opt/Autodesk/Adlm/R11/lib64/libadlmutil.so.11 /usr/lib/libadlmutil.so.11
+
+ echo -e 'MAYA_LICENSE=unlimited\nMAYA_LICENSE_METHOD=standalone' > /usr/autodesk/maya2016/bin/License.env
+
+ /usr/autodesk/maya2016/bin/adlmreg -i S $PRODUCTID $PRODUCTID 2016.0.0.F $SERIALNUMBER /var/opt/Autodesk/Adlm/Maya2016/MayaConfig.pit
+
+ /opt/Autodesk/Adlm/FLEXnet/bin/install_fnp.sh /opt/Autodesk/Adlm/FLEXnet/bin/FNPLicensingService
+
+ ln -s /usr/lib/libssl.so /usr/autodesk/maya2016/lib/libssl.so.10
+ ln -s /usr/lib/libcrypto.so /usr/autodesk/maya2016/lib/libcrypto.so.10
+
+ ln -s /usr/lib/libjpeg.so /usr/autodesk/maya2016/lib/libjpeg.so.62
+ ln -s /usr/lib/libtiff.so /usr/autodesk/maya2016/lib/libtiff.so.3
+
+ mkdir /usr/autodesk/maya2016/plugin-backups
+ mv /usr/autodesk/maya2016/plug-ins/bifrost /usr/autodesk/maya2016/plugin-backups/
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+#pre_upgrade() {
+ # do something here
+#}
+
+## arg 1: the new package version
+## arg 2: the old package version
+#post_upgrade() {
+ # do something here
+#}
+
+## arg 1: the old package version
+#pre_remove() {
+ # do something here
+#}
+
+## arg 1: the old package version
+#post_remove() {
+ # do something here
+#}