diff --git a/package/stellarium/stellarium.hash b/package/stellarium/stellarium.hash index 67e053eff7..4298c3dcde 100644 --- a/package/stellarium/stellarium.hash +++ b/package/stellarium/stellarium.hash @@ -1,4 +1,8 @@ # From https://github.com/Stellarium/stellarium/releases sha256 e376e0dc28eae0f7c4b3686fed9c2129c69a87a371b33e24bd79559a5142d613 stellarium-25.4.tar.xz +# From https://github.com/Stellarium/stellarium/blob/v25.4/CMakeLists.txt#L849 +sha256 55d0111d48fb11883aaee91465e642b8b640775a4d6993c2d0e7a8092758ef21 release-0.5.2.tar.gz +# From https://github.com/Stellarium/stellarium/blob/v25.4/plugins/LensDistortionEstimator/src/CMakeLists.txt +sha256 6e899e297485e457ec1bf84844de29921aeef674f9d5caf60277df45dca6ff76 v2.9.0.tar.gz # Locally computed sha256 3aeeb5bb98bf7041ab82cffe15efa28ac58ee2bdf162b71301f5c192be631259 COPYING diff --git a/package/stellarium/stellarium.mk b/package/stellarium/stellarium.mk index 48dadfec61..12a8f7aaa5 100644 --- a/package/stellarium/stellarium.mk +++ b/package/stellarium/stellarium.mk @@ -9,6 +9,20 @@ STELLARIUM_SOURCE = stellarium-$(STELLARIUM_VERSION).tar.xz STELLARIUM_SITE = https://github.com/Stellarium/stellarium/releases/download/v$(STELLARIUM_VERSION) STELLARIUM_LICENSE = GPL-2.0+ STELLARIUM_LICENSE_FILES = COPYING + +STELLARIUM_EXTRA_DOWNLOADS = \ + https://github.com/mity/md4c/archive/refs/tags/release-0.5.2.tar.gz \ + https://github.com/stevengj/nlopt/archive/refs/tags/v2.9.0.tar.gz + +# Prevent stellarium from downloading stuff during its configure step +define STELLARIUM_COPY_EXTRA_DOWNLOADS + mkdir -p $(@D)/_deps/md4c-subbuild/md4c-populate-prefix/src/ + cp $(STELLARIUM_DL_DIR)/release-0.5.2.tar.gz $(@D)/_deps/md4c-subbuild/md4c-populate-prefix/src/ + mkdir -p $(@D)/_deps/nlopt-subbuild/nlopt-populate-prefix/src/ + cp $(STELLARIUM_DL_DIR)/v2.9.0.tar.gz $(@D)/_deps/nlopt-subbuild/nlopt-populate-prefix/src/ +endef +STELLARIUM_POST_EXTRACT_HOOKS += STELLARIUM_COPY_EXTRA_DOWNLOADS + STELLARIUM_DEPENDENCIES = \ qt5base \ qt5charts \