23 lines
754 B
Plaintext
23 lines
754 B
Plaintext
# Description: Lightweight cross platform C++ GUID/UUID library
|
|
# URL: https://github.com/graeme-hill/crossguid
|
|
# Maintainer: Tim Biermann, tbier at posteo dot de
|
|
# Depends on: cmake
|
|
|
|
name=crossguid
|
|
version=0.2.2
|
|
release=1
|
|
source=(https://github.com/graeme-hill/crossguid/archive/v$version/$name-$version.tar.gz)
|
|
|
|
build() {
|
|
[[ -e /usr/bin/ninja ]] && PKGMK_CROSSGUID+=' -GNinja'
|
|
cmake -S $name-$version -B build $PKGMK_CROSSGUID \
|
|
-D CMAKE_INSTALL_PREFIX=/usr \
|
|
-D CMAKE_BUILD_TYPE=Release \
|
|
-D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
|
|
-D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
|
|
-Wno-dev
|
|
cmake --build build
|
|
install -D -m 0644 build/libxg.a $PKG/usr/lib/libxg.a
|
|
install -D -m 0644 $name-$version/Guid.hpp $PKG/usr/include/Guid.hpp
|
|
}
|