Below is for 25.2.09-1
brycscad.install:
pre_remove() { [cite: 3]
rm -rf var/bricsys/Components/{*,.*} 2> /dev/null || [cite: 3]
true [cite: 4]
rm -rf var/bricsys/RenderMaterials/UserMaterials/{*,.*} 2> /dev/null || true [cite: 4]
}
PKGBUILD:
# Maintainer: William Tang <galaxyking0419@gmail.com>
pkgname=bricscad
pkgver=25.2.09
pkgrel=1
pkgdesc="CAD Software for People Who Build the Future"
arch=('x86_64')
url='https://www.bricsys.com/'
license=('custom')
conflicts=('bricscad-cn')
depends=('alsa-lib' 'glu' 'libdeflate' 'libxcrypt-compat' 'libxkbfile' 'libxml2-legacy' 'nss' 'openmotif' 'webkit2gtk' 'xcb-util-cursor' 'xcb-util-keysyms' 'xcb-util-wm')
optdepends=('bricscad-communicator>=25: Addtional import/export file format support')
DLAGENTS+=('manual::/usr/bin/echo \ \ Note: Please download the package manually from the official website')
source=("manual://BricsCAD-V${pkgver}-1-en_US-amd64.deb")
sha256sums=('624dc0d55b2f0069014737912124f7c91935c76870a77c7bc5f81e920fc1620a')
options=(!strip)
install='bricscad.install'
prepare() {
tar -xpf data.tar.zst
# This command must be on one line:
find . -type d -exec chmod 755 {} +
mkdir var/bricsys/{Components,RenderMaterials/UserMaterials}
chmod -R 777 var/bricsys/
}
package() {
mv opt usr var "$pkgdir/"
}
Pinned Comments
ttc0419 commented on 2022-06-21 16:42 (UTC) (edited on 2022-06-22 17:35 (UTC) by ttc0419)
To build this package, please download the "English" version of the deb package from the official website and copy it into the build directory containing PKGBUILD file. Then, run the command
makepkg -si
to build and install the package.Note: If you remove the package, any files under the
/var/bricsys/Components
and/var/bricsys/RenderMaterials/UserMaterials
folder WILL BE deleted! Backup these files before uninstall!