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/linux/kernel/git/gregkh/usbutils.git"
|
||||||
|
|
||||||
|
# Get tag name using 'git ls-remote'
|
||||||
|
TAG_NAME=$(git ls-remote --exit-code --refs --tags --sort='v:refname' "$REPO" | cut -d'/' -f3 | sort -V | tail -n1)
|
||||||
|
|
||||||
|
# Trim 'v' character in TAG_NAME variable
|
||||||
|
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
name: usbutils
|
||||||
|
description: A collection of USB tools to query connected USB devices
|
||||||
|
version: "019"
|
||||||
|
revision: 1
|
||||||
|
url: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/
|
||||||
|
license: GPL2-only,GPL2-or-later,GPL3-only,LGPL2.1-or-later,MIT
|
||||||
|
architecture: any
|
||||||
|
type: source
|
||||||
|
depends:
|
||||||
|
- glibc
|
||||||
|
- hwdata
|
||||||
|
- libudev
|
||||||
|
- libusb
|
||||||
|
optional_depends:
|
||||||
|
- coreutils
|
||||||
|
- python3
|
||||||
|
- sh
|
||||||
|
make_depends:
|
||||||
|
- meson
|
||||||
|
- udev
|
||||||
|
downloads:
|
||||||
|
- url: https://git.kernel.org/pub/scm/linux/kernel/git/gregkh/usbutils.git/snapshot/usbutils-${BPM_PKG_VERSION}.tar.gz
|
||||||
|
extract_to: ${BPM_SOURCE}
|
||||||
|
extract_strip_components: 1
|
||||||
|
checksum: f0df341a2125a4bdf2f88c77c3828af9f24c2d58e30928c45b23f41e1315df7a
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
# 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() {
|
||||||
|
meson setup build --prefix=/usr
|
||||||
|
meson compile -C build
|
||||||
|
}
|
||||||
|
|
||||||
|
# The package function is executed in the source directory
|
||||||
|
# This function is used to move the compiled files into the output directory
|
||||||
|
package() {
|
||||||
|
meson install -C build --destdir="$BPM_OUTPUT"
|
||||||
|
|
||||||
|
# Install package license
|
||||||
|
install -Dm644 "$BPM_SOURCE"/LICENSES/*.txt -t "$BPM_OUTPUT"/usr/share/licenses/usbutils/
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user