37 lines
1.2 KiB
Bash
37 lines
1.2 KiB
Bash
# Template file for 'cpp-utilities'
|
|
pkgname=cpp-utilities
|
|
version=5.10.4
|
|
revision=1
|
|
build_style=cmake
|
|
configure_args="-DBUILD_SHARED_LIBS:BOOL=ON"
|
|
hostmakedepends="pkg-config"
|
|
short_desc="C++ library for argument parsing, IO, parsing and more"
|
|
maintainer="Andrew J. Hesford <ajh@sideband.org>"
|
|
license="GPL-2.0-only"
|
|
homepage="https://github.com/Martchus/cpp-utilities"
|
|
distfiles="https://github.com/Martchus/${pkgname}/archive/v${version}.tar.gz"
|
|
checksum=b4e401dda8278d7d24b726c4f77f64d5e9b19150504089f8e000a9ad027aa9d5
|
|
|
|
cpp-utilities-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove "usr/lib/*.so"
|
|
vmove usr/lib/pkgconfig
|
|
|
|
# Rename cmake modules to fit with the rest of the system
|
|
vmkdir usr/lib/cmake
|
|
cmake_source="${DESTDIR}/usr/share/c++utilities/cmake"
|
|
cmake_dest="${PKGDESTDIR}/usr/lib/cmake/c++utilities"
|
|
mv "$cmake_source" "$cmake_dest"
|
|
|
|
# Update cmake configuration to point to new location
|
|
vsed -i "${cmake_dest}/c++utilitiesConfig.cmake" \
|
|
-e "s@share/c++utilities/cmake@lib/cmake/c++utilities@g"
|
|
|
|
# The rest of share is just development-related stuff
|
|
vmove usr/share/c++utilities
|
|
}
|
|
}
|