mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-16 14:17:02 +02:00
parent
de84f22b88
commit
d69701cb11
1 changed files with 4 additions and 2 deletions
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'freecad'
|
||||
pkgname=freecad
|
||||
version=0.20.1
|
||||
revision=3
|
||||
revision=4
|
||||
wrksrc="FreeCAD-${version}"
|
||||
build_style=cmake
|
||||
|
||||
|
@ -44,7 +44,9 @@ fi
|
|||
|
||||
post_extract() {
|
||||
# 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
|
||||
vsed -e "s,\${PACKAGE_WCREF},${revision}_voidlinux," \
|
||||
|
|
Loading…
Add table
Reference in a new issue