File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,12 +19,19 @@ get-debloated-pkgs --add-common --prefer-nano
1919# make-aur-package PACKAGENAME
2020
2121# If the application needs to be manually built that has to be done down here
22- # if [ "${DEVEL_RELEASE-}" = 1 ]; then
23- echo " Making nightly build of CatacombGL..."
22+ echo " Building CatacombGL..."
2423echo " ---------------------------------------------------------------"
2524REPO=" https://github.com/ArnoAnsems/CatacombGL"
26- VERSION=" $( git ls-remote " $REPO " HEAD | cut -c 1-9 | head -1) "
27- git clone " $REPO " ./CatacombGL
25+ if [ " ${DEVEL_RELEASE-} " = 1 ]; then
26+ echo " Making nightly build of CatacombGL..."
27+ echo " ---------------------------------------------------------------"
28+ VERSION=" $( git ls-remote " $REPO " HEAD | cut -c 1-9 | head -1) "
29+ git clone " $REPO " ./CatacombGL
30+ else
31+ echo " Making stable build of CatacombGL..."
32+ VERSION=" $( git ls-remote --tags --sort=" v:refname" " $REPO " | tail -n1 | sed ' s/.*\///; s/\^{}//; s/^v//' ) "
33+ git clone --branch v" $VERSION " --single-branch --recursive --depth 1 " $REPO " ./CatacombGL
34+ fi
2835echo " $VERSION " > ~ /version
2936
3037mkdir -p ./AppDir/bin
@@ -33,6 +40,3 @@ mkdir build && cd build
3340cmake .. -DCMAKE_BUILD_TYPE=Release
3441make -j$( nproc)
3542mv -v CatacombGL ../../AppDir/bin
36- # else
37- # regular build steps
38- # fi
You can’t perform that action at this time.
0 commit comments