39 lines
888 B
Text
Executable file
39 lines
888 B
Text
Executable file
# Maintainer: PktSurf <smlinux@pktsurf.in>
|
|
app=fmt
|
|
version=8.1.0
|
|
build=2sml
|
|
homepage="https://github.com/fmtlib/fmt"
|
|
download="https://github.com/fmtlib/fmt/archive/refs/tags/$version.tar.gz"
|
|
desc="Formatting library for C++"
|
|
requires="musl gcc-libs"
|
|
|
|
prepbuilddir() {
|
|
mkandenterbuilddir
|
|
rm -rf $app-$version
|
|
|
|
tar xf $srcdir/$app-$version.tar.?z*
|
|
cd $app-$version
|
|
fixbuilddirpermissions
|
|
}
|
|
|
|
build() {
|
|
mkdir -p smbuild && cd smbuild
|
|
cmake .. \
|
|
-DCMAKE_INSTALL_PREFIX="" \
|
|
-DCMAKE_INSTALL_LIBDIR="/lib" \
|
|
-DCMAKE_CXX_FLAGS="$CXXFLAGS" \
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
-DFMT_TEST=OFF \
|
|
-Wno-dev
|
|
|
|
make
|
|
make install DESTDIR=$pkg
|
|
|
|
install -m 644 ../LICENSE.rst $pkgdocs/LICENSE
|
|
|
|
mkfinalpkg
|
|
}
|
|
|
|
sha512sums="
|
|
3e67202ab0f91b7e26526bc632ddde063ab06d0029e34286ecf0321f7226dc2d5689a5c6aacb81d516e2c72206daf9cfb037a78cd5b0f472fadbb18934f0c424 fmt-8.1.0.tar.lz
|
|
"
|