diff options
| author | Wolfgang Stöggl <c72578@yahoo.de> | 2020-04-23 22:46:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-23 13:46:26 -0700 |
| commit | 9fc14ff367e3e9c4b6d6c2857ccd711a8e6d09a2 (patch) | |
| tree | 822fc4cbe66983aaa117f5a6f4aa1ed844742525 | |
| parent | 9f31167fb275f3cb8248aa4061a57c8771269305 (diff) | |
| download | vcpkg-9fc14ff367e3e9c4b6d6c2857ccd711a8e6d09a2.tar.gz vcpkg-9fc14ff367e3e9c4b6d6c2857ccd711a8e6d09a2.zip | |
[libaaplus] Use versioned download link (#10981)
A download link with the version in the filename is provided now for
releases of aaplus.
E.g. http://www.naughter.com/download/aaplus_v2.12.zip instead of
previously http://www.naughter.com/download/aaplus.zip, which was
overwritten, when a new version was released.
| -rw-r--r-- | ports/libaaplus/CONTROL | 2 | ||||
| -rw-r--r-- | ports/libaaplus/portfile.cmake | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/ports/libaaplus/CONTROL b/ports/libaaplus/CONTROL index eb5df3ff0..2d14f7e06 100644 --- a/ports/libaaplus/CONTROL +++ b/ports/libaaplus/CONTROL @@ -1,5 +1,5 @@ Source: libaaplus
-Version: 2.12
+Version: 2.12-1
Description: libaaplus is an astronomical computations library by naughter software
Homepage: http://www.naughter.com/aa.html
diff --git a/ports/libaaplus/portfile.cmake b/ports/libaaplus/portfile.cmake index d0b862655..358fdaba6 100644 --- a/ports/libaaplus/portfile.cmake +++ b/ports/libaaplus/portfile.cmake @@ -2,16 +2,16 @@ set(VERSION 2.12) vcpkg_download_distfile(
ARCHIVE_FILE
- URLS "http://www.naughter.com/download/aaplus.zip"
- FILENAME "aaplus.zip"
+ URLS "http://www.naughter.com/download/aaplus_v${VERSION}.zip"
+ FILENAME "aaplus_v${VERSION}.zip"
SHA512 ec3a3d1346637fbed3ec5093ded821c6d80950a6432378d9826ed842571d8670cd5d2a1c9ff58a18f308e18669d786f72d24961e26bd8e070ee35674688a39e7
)
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE_FILE}
- REF ${VERSION}
- NO_REMOVE_ONE_LEVEL
+ REF ${VERSION}
+ NO_REMOVE_ONE_LEVEL
)
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
|
