commit 7a52e8dbef404cd2a17c9f278177838669ba7772 Author: EnumDev Date: Thu Dec 25 16:08:16 2025 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..b7fa84d --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Git repository +REPO="https://git.kernel.org/pub/scm/fs/xfs/xfsprogs-dev.git" + +# Get tag name using 'git ls-remote' +TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | cut -d'/' -f3 | grep '^v' | tail -n1) + +# Trim 'v' character in VERSION variable +VERSION=$(echo "$TAG_NAME" | tr -d 'v') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..fc607a9 --- /dev/null +++ b/pkg.info @@ -0,0 +1,25 @@ +name: xfsprogs +description: XFS filesystem utilities +version: 6.17.0 +revision: 1 +url: https://xfs.wiki.kernel.org/ +license: GPL2-only,LGPL2.1-only +architecture: any +type: source +depends: + - device-mapper + - inih + - liburcu + - sh + - util-linux +optional_depends: + - icu + - python-dbus + - smtp-forwarder +make_depends: + - icu +downloads: + - url: https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/xfsprogs-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: f6aaee0328a40cf6ffb5eaf83f5163ff3bba9233550afc28990ce7e053a1dac8 diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..d02fa69 --- /dev/null +++ b/source.sh @@ -0,0 +1,22 @@ +# 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 build function is executed in the source directory +# This function is used to compile the source code +build() { + # Set OPTIMIZER environment variable to avoid default flags + export OPTIMIZER=" " + ./configure --prefix=/usr --localstatedir=/var + 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 PKG_USER=root PKG_GROUP=root DIST_ROOT="$BPM_OUTPUT" install + make PKG_USER=root PKG_GROUP=root DIST_ROOT="$BPM_OUTPUT" install-dev + + # Install package license + install -Dm644 "$BPM_SOURCE"/LICENSES/* -t "$BPM_OUTPUT"/usr/share/licenses/xfsprogs +}