buildroot:libstatgrab
libstatgrab
A library that provides cross platform access to statistics about the system on which it run
| runtime dependencies | ncurses (Libraries/Text and terminal handling) |
|---|---|
| perl (Interpreter languages and scripting) |
mkdir /data/buildroot/package/libstatgrab
cat > /data/buildroot/package/libstatgrab/Config.in<< 'EOF'
config BR2_PACKAGE_LIBSTATGRAB
bool "libstatgrab"
depends on BR2_PACKAGE_NCURSES
depends on BR2_PACKAGE_PERL
help
A library that provides cross platform access to statistics about the system on which it run
EOF
cat > /data/buildroot/package/libstatgrab/libstatgrab.mk<< 'EOF'
#############################################################
#
# libstatgrab
#https://github.com/libstatgrab/libstatgrab/archive/refs/tags/LIBSTATGRAB_0_92_1.tar.gz
#############################################################
LIBSTATGRAB_VERSION = 0.92.1
LIBSTATGRAB_SOURCE = LIBSTATGRAB_0_92_1.tar.gz
LIBSTATGRAB_SITE = https://github.com/libstatgrab/libstatgrab/archive/refs/tags
LIBSTATGRAB_INSTALL_STAGING = YES
LIBSTATGRAB_DEPENDENCIES = ncurses perl
LIBSTATGRAB_BIN_ARCH_EXCLUDE = /usr/lib
define LIBSTATGRAB_BUILD_CMDS
cd $(@D)/ && \
./configure --prefix=/usr && \
make
endef
define LIBSTATGRAB_INSTALL_STAGING_CMDS
cd $(@D)/ && \
make DESTDIR="$(STAGING_DIR)/" install
endef
define LIBSTATGRAB_INSTALL_TARGET_CMDS
cd $(@D)/ && \
make DESTDIR="$(TARGET_DIR)/" install
endef
$(eval $(generic-package))
EOF
sed -i '/menu "Custom packages"/a source "package/libstatgrab/Config.in"' /data/buildroot/package/Config.in
buildroot/libstatgrab.txt · Last modified: 2025/02/19 10:59 by 127.0.0.1
