summaryrefslogtreecommitdiff
path: root/crossguid/Pkgfile
blob: c8e973d4ac78d338adb775f82ec70a034e66e34f (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 release=1
    9 source=(https://github.com/graeme-hill/crossguid/archive/v$version/$name-$version.tar.gz)
   10 
   11 build() {
   12   cmake -S $name-$version -B build -G Ninja \
   13     -D CMAKE_INSTALL_PREFIX=/usr \
   14     -D CMAKE_BUILD_TYPE=Release \
   15     -D CMAKE_CXX_FLAGS_RELEASE="$CXXFLAGS" \
   16     -D CMAKE_C_FLAGS_RELEASE="$CFLAGS" \
   17     -Wno-dev
   18   cmake --build build
   19 
   20   install -D -m 0644 build/libxg.a $PKG/usr/lib/libxg.a
   21   install -D -m 0644 $name-$version/Guid.hpp $PKG/usr/include/Guid.hpp
   22 }

Generated by cgit