summaryrefslogtreecommitdiff
path: root/gflags/Pkgfile
blob: 3a9e6aa901c887a26498523f1e2043eaeeebc352 (plain)
    1 # Description: C++ Library for commandline flag processing
    2 # URL: https://github.com/schuhschuh/gflags
    3 # Maintainer: Danny Rawlins, crux at romster dot me
    4 # Depends on: cmake ninja
    5 
    6 name=gflags
    7 version=2.2.2
    8 release=1
    9 source=(https://github.com/schuhschuh/gflags/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 REGISTER_INSTALL_PREFIX=OFF \
   17 		-D BUILD_SHARED_LIBS=ON \
   18 		-D BUILD_STATIC_LIBS=ON \
   19 		-D BUILD_TESTING=ON \
   20 		-Wno-dev
   21 
   22 	cmake --build build
   23 	DESTDIR=$PKG cmake --install build
   24 }

Generated by cgit