new bblfs: dev-cpp/glaze-5.5.4
This commit is contained in:
35
dev-cpp/glaze-5.5.4.PKGBUILD
Normal file
35
dev-cpp/glaze-5.5.4.PKGBUILD
Normal file
@@ -0,0 +1,35 @@
|
||||
pkgname=glaze
|
||||
pkgver=5.5.4
|
||||
pkgdesc='An Extremely fast, In-Memory JSON and Interface Library for Modern C++'
|
||||
arch=(any)
|
||||
homepage="https://github.com/stephenberry/$pkgname"
|
||||
license=(MIT)
|
||||
makedepends=(cmake)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("${homepage}/archive/v$pkgver/${sources[0]}")
|
||||
md5sums=("de1e435a1bb0f40f08286086e1f22da9")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
local cmake_args=(
|
||||
-D CMAKE_INSTALL_PREFIX=/usr
|
||||
-D CMAKE_BUILD_TYPE=Release
|
||||
-D CMAKE_SKIP_INSTALL_RULES=OFF
|
||||
-D glaze_DEVELOPER_MODE=ON
|
||||
-D glaze_ENABLE_FUZZING=OFF
|
||||
-D glaze_BUILD_EXAMPLES=OFF
|
||||
-D BUILD_TESTING=OFF
|
||||
)
|
||||
cmake -B build "${cmake_args[@]}"
|
||||
cmake --build build
|
||||
}
|
||||
|
||||
src_install() {
|
||||
DESTDIR="$pkgdir" cmake --install build
|
||||
install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE
|
||||
}
|
||||
|
||||
# vim:ft=sh syn=sh et sw=2:
|
||||
Reference in New Issue
Block a user