blob: 185293d9a14b8cb3fe7ace7528d56e38a290f4fb (
plain)
1 # Description: Lightweight cross platform C++ GUID/UUID library
2 # URL: https://github.com/graeme-hill/crossguid
3 # Maintainer: Tim Biermann, tbier at posteo dot de
4 # Depends on:
5
6 name=crossguid
7 version=0.2.2
8 _commit=ca1bf4b810e2d188d04cb6286f957008ee1b7681
9 release=2
10 source=(https://github.com/graeme-hill/crossguid/archive/$_commit/$name-$version-$release.tar.gz)
11
12 build() {
13 sed -i 's!${CMAKE_INSTALL_DATADIR}/crossguid/cmake!${CMAKE_INSTALL_LIBDIR}/cmake/crossguid!' $name-$_commit/CMakeLists.txt
14
15 cmake -S $name-$_commit -B build -G Ninja \
16 -D CMAKE_INSTALL_PREFIX=/usr \
17 -D CMAKE_INSTALL_LIBDIR=lib \
18 -D CMAKE_BUILD_TYPE=Release \
19 -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
20 -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
21 -Wno-dev
22 cmake --build build
23 DESTDIR=$PKG cmake --build build --target install
24
25 rm -rf $PKG/usr/share
26 }
|