fabricad-git

LOW
maintainer maxDTM 0 votes scanned 2026-10-23 15:37:50.087015
View on AUR
Why flagged

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

Triggered rules

Low Few votes, recently uploaded zero_votes_recent

Uploaded within the last 14 days with 2 or fewer community votes — little peer review so far.

PKGBUILD

1# Maintainer: maxDTM <265972625+maxDTM at users dot noreply dot github dot com>
2# AUR VCS package: builds the latest commit of the default branch.
3pkgname=fabricad-git
4_pkgname=fabricad
5pkgver=0.1.0.r0.g8422cee
6pkgrel=1
7pkgdesc='Fast, lightweight parametric 3D CAD (parts, assemblies, drawings) on Qt 6 and OpenCASCADE'
8arch=('x86_64' 'aarch64')
9url='https://github.com/maxDTM/fabricad'
10license=('LGPL-2.1-or-later')
11depends=(
12 'gcc-libs'
13 'glibc'
14 'hicolor-icon-theme'
15 'opencascade'
16 'qt6-base'
17 'qt6-svg'
18)
19provides=("${_pkgname}=${pkgver%%.r*}")
20conflicts=("${_pkgname}")
21makedepends=(
22 'git'
23 'cmake'
24 'eigen'
25 'librsvg' # rsvg-convert renders the hicolor PNG icons from the app SVG
26)
27checkdepends=('python') # token / colour-lint checks
28# LTO roughly doubles the link-time RAM of the OCCT-heavy executables; build without it.
29options=('!lto')
30source=("${_pkgname}::git+${url}.git")
31sha256sums=('SKIP')
32
33pkgver() {
34 cd "${_pkgname}"
35 # v0.1.0-12-gabcdef0 -> 0.1.0.r12.gabcdef0 (no tag yet: 0.1.0.r<commits>.g<hash>)
36 local desc
37 if desc=$(git describe --long --tags --abbrev=7 2>/dev/null); then
38 printf '%s' "$desc" | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
39 else
40 printf '0.1.0.r%s.g%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
41 fi
42}
43
44build() {
45 cmake -S "${_pkgname}" -B build \
46 -DCMAKE_BUILD_TYPE=None \
47 -DCMAKE_INSTALL_PREFIX=/usr \
48 -DFABRICAD_BUILD_TESTS=OFF \
49 -Wno-dev
50 # parallelism comes from MAKEFLAGS (makepkg.conf); the build needs ~1 GB per job
51 cmake --build build
52}
53
54check() {
55 # the test executables are only built here, so `makepkg --nocheck` stays a plain app build
56 cmake -S "${_pkgname}" -B build -DFABRICAD_BUILD_TESTS=ON
57 cmake --build build
58 # headless; QSettings / recovery files go to a throw-away HOME. `timing` checks are skipped
59 # (a loaded build machine makes them flaky) and `gui` needs a real X display.
60 export HOME="${srcdir}/check-home" XDG_CONFIG_HOME="${srcdir}/check-home/.config" \
61 XDG_DATA_HOME="${srcdir}/check-home/.local/share" XDG_RUNTIME_DIR="${srcdir}/check-run"
62 mkdir -p "$HOME" "$XDG_RUNTIME_DIR" && chmod 700 "$XDG_RUNTIME_DIR"
63 QT_QPA_PLATFORM=offscreen ctest --test-dir build --output-on-failure -LE 'timing|gui' -j2
64}
65
66package() {
67 DESTDIR="${pkgdir}" cmake --install build
68 # LGPL-2.1 is a common licence on Arch; keep only the extra notices under licenses/
69 rm -f "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
70}
71

Scan history

Scanned at (UTC)SeverityRules
2026-10-23 15:37:50 Low 1

Report a package

Reports go to the AURWatch maintainer (one person) and are read by hand. No login required.

0 / 4000
Your suggestion