Skip to content
This repository has been archived by the owner on Feb 19, 2025. It is now read-only.

Commit

Permalink
don't compress the package
Browse files Browse the repository at this point in the history
  • Loading branch information
greyltc committed Aug 22, 2017
1 parent 0f21f0f commit 12b03bc
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Generated by mksrcinfo v8
# Tue Aug 22 10:50:22 UTC 2017
# Tue Aug 22 14:12:55 UTC 2017
pkgbase = matlab
pkgdesc = A high-level language for numerical computation and visualization
pkgver = 9.2.0.556344
pkgrel = 1
pkgrel = 2
url = http://www.mathworks.com
arch = x86_64
license = custom
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,7 @@
*.zip
*.fik
*.lic
*.dat
src/
pkg/
ml/
21 changes: 12 additions & 9 deletions PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

pkgname=matlab
pkgver=9.2.0.556344
pkgrel=1
pkgrel=2
pkgdesc='A high-level language for numerical computation and visualization'
arch=('x86_64')
url='http://www.mathworks.com'
Expand Down Expand Up @@ -36,6 +36,15 @@ source=("file://matlab.tar"
"file://matlab.fik")
md5sums=('SKIP'
'SKIP')
PKGEXT='.pkg.tar'

#_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

prepare() {
msg2 'Creating desktop file'
Expand All @@ -51,7 +60,7 @@ prepare() {
sed -i "s,^# mode=,mode=silent," "${srcdir}/installer_input.txt"
sed -i "s,^# fileInstallationKey=,fileInstallationKey=${_fik}," "${srcdir}/installer_input.txt"
if [ ! -z ${_networkinstall+isSet} ]; then
sed -i "s,^# licensePath=,licensePath=${srcdir}/${pkgname}.lic," "${srcdir}/installer_input.txt"
sed -i "s,^# licensePath=,licensePath=${srcdir}/license.dat," "${srcdir}/installer_input.txt"
fi
if [ ! -z ${_products+isSet} ]; then
msg2 'Building a package with a subset of the licensed products.'
Expand All @@ -68,7 +77,7 @@ package() {
msg2 'Installing license'
install -D -m644 "${pkgdir}/opt/tmw/${pkgname}/license_agreement.txt" "${pkgdir}/usr/share/licenses/tmw/${pkgname}/LICENSE"

msg2 'Creating links for license.lic'
msg2 'Creating links for license.dat'
ln -s "/etc/tmw/${pkgname}/licenses/" "${pkgdir}/opt/tmw/${pkgname}/licenses"

msg2 'Creating links for executables'
Expand All @@ -94,12 +103,6 @@ package() {
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.4.0",g' "${pkgdir}/opt/tmw/matlab/bin/matlab"
}

## For network installations, apparently, a license file needs to be used for the installation.
if [ ! -z ${_networkinstall+isSet} ]; then
source+="file://${pkgname}.lic"
md5sums+='SKIP'
fi

if [ ! -z ${_partialinstall+isSet} ] && [ -z ${_products+isSet} ]; then
_products=(
"Aerospace_Blockset"
Expand Down

0 comments on commit 12b03bc

Please sign in to comment.