Initial commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
|||||||
|
# Exclude bpm archives
|
||||||
|
*.bpm
|
||||||
@@ -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"
|
||||||
@@ -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
|
||||||
@@ -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
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user