mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-07 07:33:48 +02:00
parent
de84f22b88
commit
d69701cb11
1 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'freecad'
|
# Template file for 'freecad'
|
||||||
pkgname=freecad
|
pkgname=freecad
|
||||||
version=0.20.1
|
version=0.20.1
|
||||||
revision=3
|
revision=4
|
||||||
wrksrc="FreeCAD-${version}"
|
wrksrc="FreeCAD-${version}"
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
|
|
||||||
|
@ -44,7 +44,9 @@ fi
|
||||||
|
|
||||||
post_extract() {
|
post_extract() {
|
||||||
# Report exact minor version
|
# Report exact minor version
|
||||||
vsed -i -e "s,^\(set(PACKAGE_VERSION_MINOR\) .*,\1 \"${version#*.}\")," CMakeLists.txt
|
vminor=${version#*.}
|
||||||
|
vminor=${vminor%%.*}
|
||||||
|
vsed -i -e "s,^\(set(PACKAGE_VERSION_MINOR\) .*,\1 \"${vminor}\")," CMakeLists.txt
|
||||||
|
|
||||||
# SubWCRev.py (SCM check) reports "unknown" for these fields
|
# SubWCRev.py (SCM check) reports "unknown" for these fields
|
||||||
vsed -e "s,\${PACKAGE_WCREF},${revision}_voidlinux," \
|
vsed -e "s,\${PACKAGE_WCREF},${revision}_voidlinux," \
|
||||||
|
|
Loading…
Add table
Reference in a new issue