diff options
author | gargan | 2019-01-25 16:07:13 -0500 |
---|---|---|
committer | gargan | 2019-01-25 16:07:13 -0500 |
commit | 9c3fa711b0ec754e4a69aa48474efb206681e7a2 (patch) | |
tree | 60bd6f9963557ad61ca0c7d8475377ea3412ae9d | |
download | aur-9c3fa711b0ec754e4a69aa48474efb206681e7a2.tar.gz |
MATLAB 9.4.0.813654 (R2018a)
-rw-r--r-- | .SRCINFO | 34 | ||||
-rw-r--r-- | PKGBUILD | 184 |
2 files changed, 218 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..953d91ed8507 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,34 @@ +pkgbase = matlab-r2018a + pkgdesc = A high-level language for numerical computation and visualization + pkgver = 9.4.0.813654 + pkgrel = 1 + url = http://www.mathworks.com + arch = x86_64 + license = custom + makedepends = gendesk + depends = gconf + depends = glu + depends = gstreamer0.10-base + depends = gtk2 + depends = libunwind + depends = libxp + depends = libxpm + depends = libxtst + depends = nss + depends = portaudio + depends = python2 + depends = qt5-svg + depends = qt5-webkit + depends = qt5-websockets + depends = qt5-x11extras + depends = xerces-c + optdepends = gcc6: For MEX support + source = local://matlab-r2018a.tar + source = local://matlab-r2018a.fik + source = matlab-r2018a.png::https://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png + md5sums = SKIP + md5sums = SKIP + md5sums = cf28632239db6e02bc09bcca6bf5360f + +pkgname = matlab-r2018a + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3dd2355a9df7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,184 @@ +# Maintainer: John Troxler <firstname dot lastname at gmail dot com> +# Contributor: Grey Christoforo <first name at last name dot net> +# Contributor: Darcy Hu <hot123tea123@gmail.com> + +# This PKGBUILD creates an Arch Linux package for the proprietary MathWorks application MATLAB. +# +# In order to build the package, the user must supply: +# 1) a file named "matlab-r2018a.fik" containing the file installation key in plaintext. +# 2) a file named "matlab-r2018a.tar" containing the contents of the MATLAB dvd(s) or software data as downloaded by +# the installer. +# +# This PKGBUILD does not attempt to activate the product. +# The user will be prompted to undertake their activation method of choice when the GUI is first run. + +# Set this to true if a partial install is desired and also uncomment which products to install at the end of this +# file. +_partialinstall=false + +pkgname=matlab-r2018a +pkgver=9.4.0.813654 +pkgrel=1 +pkgdesc="A high-level language for numerical computation and visualization" +arch=("x86_64") +url="http://www.mathworks.com" +license=("custom") +makedepends=("gendesk") +depends=("gconf" + "glu" + "gstreamer0.10-base" + "gtk2" + "libunwind" + "libxp" + "libxpm" + "libxtst" + "nss" + "portaudio" + "python2" + "qt5-svg" + "qt5-webkit" + "qt5-websockets" + "qt5-x11extras" + "xerces-c") +optdepends=("gcc6: For MEX support") +source=("local://${pkgname}.tar" + "local://${pkgname}.fik" + "${pkgname}.png::https://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png") +md5sums=("SKIP" + "SKIP" + "cf28632239db6e02bc09bcca6bf5360f") + +_instdir="/opt/${pkgname}" + +prepare() { + # Create desktop file using system's libstdc++ and libfreetype for CJK font + gendesk -f -n --pkgname "${pkgname}" \ + --pkgdesc "${pkgdesc}" \ + --categories "Development;Education;Science;Mathematics;IDE" \ + --exec "env LD_PRELOAD=/usr/lib/libfreetype.so.6:/usr/lib/libstdc++.so.6 ${_instdir}/bin/matlab -desktop" + + # Extract file installation key + _fik=$(grep -o [0-9-]* "${srcdir}/${pkgname}.fik") + + # Modify the installer settings + sed -i "s|^# destinationFolder=|destinationFolder=${pkgdir}${_instdir}|" "${srcdir}/installer_input.txt" + sed -i "s/^# agreeToLicense=/agreeToLicense=yes/" "${srcdir}/installer_input.txt" + sed -i "s/^# mode=/mode=silent/" "${srcdir}/installer_input.txt" + sed -i "s/^# fileInstallationKey=/fileInstallationKey=${_fik}/" "${srcdir}/installer_input.txt" + + if [ ! -z ${_products+isSet} ]; then + # Build the package with a subset of the licensed products. + for _product in "${_products[@]}"; do + sed -i "/^#product.${_product}$/ s/^#//" "${srcdir}/installer_input.txt" + done + fi +} + +package() { + "${srcdir}/install" -inputFile "${srcdir}/installer_input.txt" + + install -D -m644 "${srcdir}/license_agreement.txt" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" + install -D -m644 "${srcdir}/${pkgname}.desktop" "${pkgdir}/usr/share/applications/${pkgname}.desktop" + install -D -m644 "${srcdir}/${pkgname}.png" "${pkgdir}/usr/share/pixmaps/${pkgname}.png" +} + +# This is where the user can specify which products should be installed if performing a partial install. +# NOTE: At a minimum, "MATLAB" must be uncommented. Also, any products that are not licensed will not be installed +# even if they are uncommented below. + +if ${_partialinstall} && [ -z ${_products+isSet} ]; then + _products=("MATLAB" + # "Aerospace_Blockset" + # "Aerospace_Toolbox" + # "Antenna_Toolbox" + # "Audio_System_Toolbox" + # "Automated_Driving_System_Toolbox" + # "Bioinformatics_Toolbox" + # "Communications_System_Toolbox" + # "Computer_Vision_System_Toolbox" + # "Control_System_Toolbox" + # "Curve_Fitting_Toolbox" + # "DO_Qualification_Kit" + # "DSP_System_Toolbox" + # "Data_Acquisition_Toolbox" + # "Database_Toolbox" + # "Datafeed_Toolbox" + # "Econometrics_Toolbox" + # "Embedded_Coder" + # "Filter_Design_HDL_Coder" + # "Financial_Instruments_Toolbox" + # "Financial_Toolbox" + # "Fixed_Point_Designer" + # "Fuzzy_Logic_Toolbox" + # "GPU_Coder" + # "Global_Optimization_Toolbox" + # "HDL_Coder" + # "HDL_Verifier" + # "IEC_Certification_Kit" + # "Image_Acquisition_Toolbox" + # "Image_Processing_Toolbox" + # "Instrument_Control_Toolbox" + # "LTE_HDL_Toolbox" + # "LTE_System_Toolbox" + # "MATLAB_Coder" + # "MATLAB_Compiler" + # "MATLAB_Compiler_SDK" + # "MATLAB_Distributed_Computing_Server" + # "MATLAB_Production_Server" + # "MATLAB_Report_Generator" + # "Mapping_Toolbox" + # "Model_Predictive_Control_Toolbox" + # "Model_Based_Calibration_Toolbox" + # "Neural_Network_Toolbox" + # "OPC_Toolbox" + # "Optimization_Toolbox" + # "Parallel_Computing_Toolbox" + # "Partial_Differential_Equation_Toolbox" + # "Phased_Array_System_Toolbox" + # "Polyspace_Bug_Finder" + # "Polyspace_Code_Prover" + # "Powertrain_Blockset" + # "Predictive_Maintenance_Toolbox" + # "RF_Blockset" + # "RF_Toolbox" + # "Risk_Management_Toolbox" + # "Robotics_System_Toolbox" + # "Robust_Control_Toolbox" + # "Signal_Processing_Toolbox" + # "SimBiology" + # "SimEvents" + # "Simscape" + # "Simscape_Driveline" + # "Simscape_Electronics" + # "Simscape_Fluids" + # "Simscape_Multibody" + # "Simscape_Power_Systems" + # "Simulink" + # "Simulink_3D_Animation" + # "Simulink_Check" + # "Simulink_Code_Inspector" + # "Simulink_Coder" + # "Simulink_Control_Design" + # "Simulink_Coverage" + # "Simulink_Design_Optimization" + # "Simulink_Design_Verifier" + # "Simulink_Desktop_Real_Time" + # "Simulink_PLC_Coder" + # "Simulink_Real_Time" + # "Simulink_Report_Generator" + # "Simulink_Requirements" + # "Simulink_Test" + # "Spreadsheet_Link" + # "Stateflow" + # "Statistics_and_Machine_Learning_Toolbox" + # "Symbolic_Math_Toolbox" + # "System_Identification_Toolbox" + # "Text_Analytics_Toolbox" + # "Trading_Toolbox" + # "Vehicle_Dynamics_Blockset" + # "Vehicle_Network_Toolbox" + # "Vision_HDL_Toolbox" + # "WLAN_System_Toolbox" + # "Wavelet_Toolbox" + ) +fi |