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> # Maintainer: Adrian Insaurralde <adrianinsaval at gmail dot com>
pkgname=freecad-git pkgname=freecad-git
pkgver=0.22.0.36999.ged77603af9 pkgver=1.0rc1
pkgrel=1 pkgrel=1
pkgdesc='A general purpose 3D CAD modeler - git checkout' pkgdesc='A general purpose 3D CAD modeler - git checkout'
arch=('x86_64') arch=('x86_64')
@ -57,17 +57,9 @@ optdepends=(
) )
provides=('freecad') provides=('freecad')
conflicts=('freecad' 'freecad-appimage' 'freecad-appimage-git') 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') 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() { prepare() {
cd FreeCAD cd FreeCAD
git submodule update --init git submodule update --init
@ -96,10 +88,10 @@ build() {
ninja -C build ninja -C build
} }
check() { # check() {
cd build # cd build
LD_LIBRARY_PATH=lib bin/FreeCADCmd --console --run-test 0 # LD_LIBRARY_PATH=lib bin/FreeCADCmd --console --run-test 0
} # }
package() { package() {
DESTDIR="$pkgdir" ninja -C build install DESTDIR="$pkgdir" ninja -C build install