Initial commit

This commit is contained in:
2026-05-21 20:26:56 +03:00
commit 9c49f1bf8a
5 changed files with 103 additions and 0 deletions
+3
View File
@@ -0,0 +1,3 @@
# Ignore BPM archives and signatures
*.bpm
*.bpm.sig
+12
View File
@@ -0,0 +1,12 @@
#!/bin/bash
# Gitlab repository
REPO="GNOME/libgtop"
# Replace slash with URL encoded representation
REPO=$(echo "$REPO" | sed 's|/|%2F|g')
# Get tag name using Gitlab Rest API
TAG_NAME=$(curl -s -L https://gitlab.gnome.org/api/v4/projects/"$REPO"/repository/tags | jq -r '.[].name' | grep -v -E '\.(8|9)[0-9]$' | head -n1)
echo "$TAG_NAME"
+22
View File
@@ -0,0 +1,22 @@
name: libgtop
description: Library for collecting system monitoring data
version: 2.41.3
revision: 1
url: https://gitlab.gnome.org/GNOME/libgtop
license: GPL2-or-later
maintainers:
- [email protected]
architecture: any
type: source
depends:
- glib
- glibc
- libxau
make_depends:
- gobject-introspection
- gtk-doc
downloads:
- url: https://gitlab.gnome.org/GNOME/libgtop/-/archive/2.41.3/libgtop-${BPM_PKG_VERSION}.tar.gz
extract_to: ${BPM_SOURCE}
extract_strip_components: 1
checksum: 2136f5586377706c267b61c04c3f59ada69d59d83fc8967f137813a8503d0fa7
@@ -0,0 +1,33 @@
From 6370ad16e7dfcabd1485c2981a006f9cda90a878 Mon Sep 17 00:00:00 2001
From: kpcyrd <[email protected]>
Date: Fri, 22 Mar 2024 11:26:58 +0100
Subject: [PATCH] Reproducible Builds: Do not embed build-server kernel version
on Linux
---
src/daemon/server.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/daemon/server.c b/src/daemon/server.c
index 60427e89..aac8477e 100644
--- a/src/daemon/server.c
+++ b/src/daemon/server.c
@@ -63,6 +63,7 @@ main(int argc, char *argv[])
_exit (1);
}
#else
+#ifndef __linux__
if (strcmp (uts.sysname, LIBGTOP_COMPILE_SYSTEM) ||
strcmp (uts.release, LIBGTOP_COMPILE_RELEASE) ||
strcmp (uts.machine, LIBGTOP_COMPILE_MACHINE)) {
@@ -74,6 +75,7 @@ main(int argc, char *argv[])
fprintf (stderr, "you should recompile libgtop and dependent "
"applications.\n");
}
+#endif
#endif
glibtop_machine_new (glibtop_global_server);
--
GitLab
+33
View File
@@ -0,0 +1,33 @@
# This is the source.sh script. It is executed by BPM in a temporary directory when compiling a source package
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
# The prepare function is executed in the root of the temp directory
# This function is used for putting downloaded files to the correct location or applying patches
prepare() {
cd "$BPM_SOURCE"
patch -Np1 -i "$BPM_WORKDIR"/0001-do-not-embed-build-server-kernel-version.patch
autoreconf -fi
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-gtk-doc
# Prevent excessive overlinking due to libtool
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
# The package function is executed in the source directory
# This function is used to move the compiled files into the output directory
package() {
make DESTDIR="$BPM_OUTPUT" install
# Install package license
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/libgtop/COPYING
}