Created
March 10, 2024 11:25
-
-
Save FabioLolix/1b40b55baef9e41b781efc3499718dfe to your computer and use it in GitHub Desktop.
clog-git cmake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net> | |
pkgname=glog-git | |
pkgver=0.7.0.r4.gea0748d | |
pkgrel=1 | |
pkgdesc="C++ implementation of the Google logging module" | |
arch=('i686' 'x86_64') | |
url="https://github.com/google/glog" | |
license=('BSD') | |
depends=('gflags' 'libunwind') | |
makedepends=('git' 'cmake') | |
provides=("google-glog=$pkgver") | |
conflicts=('google-glog') | |
options=('staticlibs') | |
source=('git+https://github.com/google/glog.git') | |
sha256sums=('SKIP') | |
pkgver() { | |
cd "glog" | |
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' | |
} | |
build() { | |
cmake -B build -S glog -Wno-dev \ | |
-DCMAKE_BUILD_TYPE=None \ | |
-DCMAKE_INSTALL_PREFIX=/usr | |
cmake --build build | |
} | |
check() { | |
ctest --test-dir build --output-on-failure || true | |
# Test #2 fail when building with makepkg, pass when building with devtools | |
} | |
package() { | |
DESTDIR="${pkgdir}" cmake --install build | |
install -Dm644 "glog/COPYING" -t "$pkgdir/usr/share/licenses/glog" | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment