diff options
author | chn | 2021-06-23 12:40:42 +0800 |
---|---|---|
committer | chn | 2021-06-23 12:44:58 +0800 |
commit | 498ff5444494e208b1efb3c3b6fe65d48b046d04 (patch) | |
tree | f7eaecd32387709a3aae78256e8a84ed3b58c2d8 | |
download | aur-comsol-multiphysics.tar.gz |
init
-rw-r--r-- | .SRCINFO | 11 | ||||
-rw-r--r-- | PKGBUILD | 42 |
2 files changed, 53 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..7e5f27f24899 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,11 @@ +pkgbase = comsol-multiphysics + pkgdesc = A general-purpose simulation software for modeling designs, devices, and processes in all fields of engineering, manufacturing, and scientific research + pkgver = 5.6.0.401 + pkgrel = 1 + url = https://www.comsol.com/comsol-multiphysics + arch = x86_64 + license = custom + source = file://comsol-multiphysics.tar.xz + sha256sums = SKIP + +pkgname = comsol-multiphysics diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..db8366aa1de7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,42 @@ +# Maintainer: Haonan Chen <g897331845@gmail.com> + +# You need to manyally create tarball first. +# 1. Create a clean archlinux root with necessary packages +# sudo mkdir -p /root/chroot/lowwer +# sudo pacstrap /root/chroot/lowwer base base-devel vim xorg +# also remember to enable necessary locales and install some fonts +# (otherwise non-English letters will not show properly) +# after that, copy comsol iso and license file into /root/chroot/lowwer +# 2. create overlayfs +# sudo mkdir -p /root/chroot/upper +# sudo mkdir -p /root/chroot/work +# sudo mkdir -p /root/chroot/overlay +# sudo mount -t overlay overlay -o upperdir=/root/chroot/upper,lowerdir=/root/chroot/lowwer,workdir=/root/chroot/work overlay +# 3. jump into chroot with GUI application support +# xhost +local: +# sudo arch-chroot /root/chroot/overlay +# export $DISPLAY=:0 +# 4. install comsol normally. not to install to /opt/comsol56/multiphysics and check "install desktop entry" +# 5. exit and create tarball +# sudo umount /root/chroot/overlay +# sudo -i +# cd /root/chroot/upper +# tar -cpf - opt usr | xz -T0 -c - > comsol-multiphysics.tar.xz +# 6. that's all. just delete junk file to release disk space. + + +pkgname=comsol-multiphysics +pkgver=5.6.0.401 +pkgrel=1 +pkgdesc='A general-purpose simulation software for modeling designs, devices, and processes in all fields of engineering, manufacturing, and scientific research' +arch=('x86_64') +url='https://www.comsol.com/comsol-multiphysics' +license=(custom) +source=("file://comsol-multiphysics.tar.xz") +sha256sums=(SKIP) +OPTIONS=(!strip docs libtool staticlibs) + +package() +{ + cp -r ${srcdir}/{opt,usr} ${pkgdir}/ +} |