rc1 build

This commit is contained in:
lod 2024-09-15 19:39:48 +02:00
parent a0b12aade0
commit d2457d806e

View file

@ -2,7 +2,7 @@
# Maintainer: Adrian Insaurralde <adrianinsaval at gmail dot com>
pkgname=freecad-git
pkgver=0.22.0.36999.ged77603af9
pkgver=1.0rc1
pkgrel=1
pkgdesc='A general purpose 3D CAD modeler - git checkout'
arch=('x86_64')
@ -57,17 +57,9 @@ optdepends=(
)
provides=('freecad')
conflicts=('freecad' 'freecad-appimage' 'freecad-appimage-git')
source=("git+https://github.com/FreeCAD/FreeCAD.git")
source=("git+https://github.com/FreeCAD/FreeCAD.git#tag=$pkgver")
md5sums=('SKIP')
pkgver() {
cd FreeCAD
read -d$'/n' -r major minor patch < <(grep -Po "set\(PACKAGE_VERSION_(MAJOR|MINOR|PATCH) \"\K[0-9]*" CMakeLists.txt) || true
count=$((24266 + $(git rev-list --count d29fd7d..HEAD) ))
hash=$(git rev-parse --short HEAD)
printf "%d.%d.%d.%d.g%s" "$major" "$minor" "$patch" "$count" "$hash"
}
prepare() {
cd FreeCAD
git submodule update --init
@ -96,10 +88,10 @@ build() {
ninja -C build
}
check() {
cd build
LD_LIBRARY_PATH=lib bin/FreeCADCmd --console --run-test 0
}
# check() {
# cd build
# LD_LIBRARY_PATH=lib bin/FreeCADCmd --console --run-test 0
# }
package() {
DESTDIR="$pkgdir" ninja -C build install