@bbaserdem
Also, is there a specific reason for having non pkg.xz extension?
Because it will take a lot of time to compress the package and then you will extract it just after the compression.
Git Clone URL: | https://aur.archlinux.org/matlab.git (read-only, click to copy) |
---|---|
Package Base: | matlab |
Description: | A high-level language for numerical computation and visualization (Java components) |
Upstream URL: | https://www.mathworks.com/products/matlab.html |
Keywords: | computation matlab numerical visualization |
Licenses: | custom:MATLAB EULA |
Provides: | java-matlab-version |
Submitter: | ido |
Maintainer: | vitaliikuzhdin |
Last Packager: | vitaliikuzhdin |
Votes: | 41 |
Popularity: | 0.77 |
First Submitted: | 2015-08-15 09:33 (UTC) |
Last Updated: | 2025-06-25 09:52 (UTC) |
« First ‹ Previous 1 .. 13 14 15 16 17 18 19 20 21 22 23 .. 26 Next › Last »
@bbaserdem
Also, is there a specific reason for having non pkg.xz extension?
Because it will take a lot of time to compress the package and then you will extract it just after the compression.
ncurses5-compat-libs is necessary only for >=2016a, which I believe can be phased out. That would leave only a single aur dependency. There is a matlab-2015b package seperately in aur.
Also, is there a specific reason for having non pkg.xz extension?
Also getting a ==> WARNING: Package contains reference to $srcdir
.
@a36233 your tar has to have a folder matlab in it, not directly the contents of the matlab installation. Either untar into a directory named matlab then tar -cvf matlab.tar matlab
the directory. Or remove the ${pkgname} from the lines that refer to the source files.
I vote for petronny's comment.
I'm having the following problem:
"installer_input.txt" it at root of the tar file in r2018a
@hottea
source=("file://matlab.tar"
- "file://matlab.fik")
+ "file://matlab.fik"
+ "file://matlab.lic"
+ "matlab.png::https://upload.wikimedia.org/wikipedia/commons/2/21/Matlab_Logo.png")
,
-#_networkinstall=true
-
-## For network installations, apparently, a license file needs to be used for the installation.
-if [ ! -z ${_networkinstall+isSet} ]; then
- source+=("file://license.dat")
- md5sums+=('SKIP')
-fi
Why matlab.lic is added as source for non-network installations?
- msg2 'Configuring mex options'
- sed -i "s#CC='gcc'#CC='gcc-4.7'#g" "${pkgdir}/opt/tmw/${pkgname}/bin/mexopts.sh"
- sed -i "s#CXX='g++'#CXX='g++-4.7'#g" "${pkgdir}/opt/tmw/${pkgname}/bin/mexopts.sh"
- sed -i "s#FC='gfortran'#FC='gfortran-4.7'#g" "${pkgdir}/opt/tmw/${pkgname}/bin/mexopts.sh"
,
- ## See $MATLABROOT/sys/os/glnxa64/README.libstdc++
- msg2 'Removing unused library files'
- rm ${pkgdir}/opt/tmw/${pkgname}/sys/os/glnxa64/{libstdc++.so.6.0.20,libstdc++.so.6,libgcc_s.so.1,libgfortran.so.3.0.0,libgfortran.so.3,libquadmath.so.0.0.0,libquadmath.so.0}
and
- # make sure MATLAB can find libgfortran.so.3
- sed -i 's,LD_LIBRARY_PATH="`eval echo $LD_LIBRARY_PATH`",LD_LIBRARY_PATH="`eval echo $LD_LIBRARY_PATH`:/usr/lib/gcc/x86_64-pc-linux-gnu/5.5.0",g' "${pkgdir}/opt/tmw/matlab/bin/matlab"
Why these are removed?
-## This PKGBUILD creates an Arch Linux package for the proprietary MATLAB application. A license from The MathWorks is needed in order to both build the package and to run MATLAB once the package is installed. In order to build the package the user must supply a plain text file installation key and the software. For network installations, in addition to the file installation key, a license file needs to be used for the installation. The tar archive file can be generated from an ISO downloaded from The MathWorks, generated from the official DVD, or created by using the interactive installer to download the toolboxes (installation can be made to a temporary directory and canceled once the toolboxes are downloaded). The contents of the tar archive must include: ./archives/ ./bin/ ./etc/ ./help/ ./java/ /sys ./activate.ini ./install ./installer_input.txt
Why these instructions are removed? They are much clearer.
$ pacman -Fo /usr/bin/mex
usr/bin/mex is owned by extra/texlive-bin 2017.44590-14
Please rename the mex binary in matlab.
Done. Go ahead and make your changes folks!
@greyltc Ok, I'm glad to.
@greyltc OK if you approve my changes.
@petronny and/or @hottea, would you like me to make you a co-maintainer?
@greyltc I wrote a 2018a PKGBUILD here. It behaves almost as same as your current one, except splitting the keys to a new package.
PS. You can just pull my repository to fetch these changes.
Pinned Comments