mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-03-03 04:00:00 +01:00
Update snapcraft.yaml
change Environment variables SNAPCRAFT_*→ CRAFT_*
This commit is contained in:
@@ -83,10 +83,10 @@ parts:
|
|||||||
plugin: nil
|
plugin: nil
|
||||||
source: https://github.com/qelectrotech/DXFtoQET-2020.git
|
source: https://github.com/qelectrotech/DXFtoQET-2020.git
|
||||||
override-build: |
|
override-build: |
|
||||||
qmake "$SNAPCRAFT_PART_SRC/DXFtoQET.pro"
|
qmake "$CRAFT_PART_SRC/DXFtoQET.pro"
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
mkdir -p "$SNAPCRAFT_PART_INSTALL/bin"
|
mkdir -p "$CRAFT_PART_INSTALL/bin"
|
||||||
cp DXFtoQET "$SNAPCRAFT_PART_INSTALL/bin/"
|
cp DXFtoQET "$CRAFT_PART_INSTALL/bin/"
|
||||||
|
|
||||||
qelectrotech:
|
qelectrotech:
|
||||||
after: [kde-sdk-setup]
|
after: [kde-sdk-setup]
|
||||||
@@ -102,9 +102,9 @@ parts:
|
|||||||
modified_displayed_version="${snap_version}.snap"
|
modified_displayed_version="${snap_version}.snap"
|
||||||
sed -i -E "s|const QString displayedVersion =.*|const QString displayedVersion =\"$modified_displayed_version\";|" sources/qet.h
|
sed -i -E "s|const QString displayedVersion =.*|const QString displayedVersion =\"$modified_displayed_version\";|" sources/qet.h
|
||||||
craftctl set version="$snap_version"
|
craftctl set version="$snap_version"
|
||||||
qmake "$SNAPCRAFT_PART_SRC/qelectrotech.pro"
|
qmake "$CRAFT_PART_SRC/qelectrotech.pro"
|
||||||
make -j${SNAPCRAFT_PARALLEL_BUILD_COUNT}
|
make -j${CRAFT_PARALLEL_BUILD_COUNT}
|
||||||
make install INSTALL_ROOT="$SNAPCRAFT_PART_INSTALL"
|
make install INSTALL_ROOT="$CRAFT_PART_INSTALL"
|
||||||
override-stage: |
|
override-stage: |
|
||||||
craftctl default
|
craftctl default
|
||||||
# patch desktop file with correct icon path
|
# patch desktop file with correct icon path
|
||||||
@@ -118,10 +118,10 @@ parts:
|
|||||||
override-prime: |
|
override-prime: |
|
||||||
set -eux
|
set -eux
|
||||||
for snap in "kf5-5-108-qt-5-15-10-core22"; do # List all content-snaps you're using here
|
for snap in "kf5-5-108-qt-5-15-10-core22"; do # List all content-snaps you're using here
|
||||||
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" "$SNAPCRAFT_PRIME/usr/{}" \;
|
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$CRAFT_PRIME/{}" "$CRAFT_PRIME/usr/{}" \;
|
||||||
done
|
done
|
||||||
for cruft in bug lintian man; do
|
for cruft in bug lintian man; do
|
||||||
rm -rf $SNAPCRAFT_PRIME/usr/share/$cruft
|
rm -rf $CRAFT_PRIME/usr/share/$cruft
|
||||||
done
|
done
|
||||||
find $SNAPCRAFT_PRIME/usr/share/doc/ -type f -not -name 'copyright' -delete
|
find $CRAFT_PRIME/usr/share/doc/ -type f -not -name 'copyright' -delete
|
||||||
find $SNAPCRAFT_PRIME/usr/share -type d -empty -delete
|
find $CRAFT_PRIME/usr/share -type d -empty -delete
|
||||||
|
|||||||
Reference in New Issue
Block a user