2021-11-24 12:54:53 +08:00
|
|
|
set(VERSION_MAJOR 2)
|
2022-07-14 04:55:14 +08:00
|
|
|
set(VERSION_MINOR 38)
|
|
|
|
set(VERSION ${VERSION_MAJOR}.${VERSION_MINOR})
|
2021-11-24 12:54:53 +08:00
|
|
|
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "https://mirrors.edge.kernel.org/pub/linux/utils/util-linux/v${VERSION_MAJOR}.${VERSION_MINOR}/util-linux-${VERSION}.tar.xz"
|
|
|
|
FILENAME "util-linux-${VERSION}.tar.xz"
|
2022-07-14 04:55:14 +08:00
|
|
|
SHA512 d0f7888f457592067938e216695871ce6475a45d83a092cc3fd72b8cf8fca145ca5f3a99122f1744ef60b4f773055cf4e178dc6c59cd30837172aee0b5597e8c
|
2021-11-24 12:54:53 +08:00
|
|
|
)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2021-11-24 12:54:53 +08:00
|
|
|
ARCHIVE "${ARCHIVE}"
|
2023-04-14 00:13:15 +08:00
|
|
|
SOURCE_BASE ${VERSION}
|
2021-11-24 12:54:53 +08:00
|
|
|
)
|
|
|
|
|
2022-10-14 02:20:24 +08:00
|
|
|
set(ENV{GTKDOCIZE} true)
|
|
|
|
|
2021-11-24 12:54:53 +08:00
|
|
|
vcpkg_configure_make(
|
|
|
|
AUTOCONFIG
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
--disable-asciidoc
|
|
|
|
--disable-all-programs
|
|
|
|
--enable-libmount
|
|
|
|
--enable-libblkid
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_make()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/debug/bin")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/sbin" "${CURRENT_PACKAGES_DIR}/debug/sbin")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/tools") # empty folder
|
|
|
|
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|