Initial commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Exclude bpm archives
|
||||
*.bpm
|
||||
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
URL="https://releases.pagure.org/libosinfo/"
|
||||
|
||||
# Get version number from FTP server
|
||||
VERSION=$(curl -s -L "$URL" | grep -o 'osinfo-db-tools-.*.tar.xz' | grep -o -E '[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}' | sort -V | tail -n1)
|
||||
|
||||
echo "$VERSION"
|
||||
@@ -0,0 +1,23 @@
|
||||
name: osinfo-db-tools
|
||||
description: Tools for managing the osinfo database
|
||||
version: 1.12.0
|
||||
revision: 1
|
||||
url: https://libosinfo.org/
|
||||
license: GPL2-or-later
|
||||
architecture: any
|
||||
type: source
|
||||
depends:
|
||||
- gcc-libs
|
||||
- glib
|
||||
- glibc
|
||||
- json-glib
|
||||
- libarchive
|
||||
- libsoup
|
||||
- libxml2
|
||||
make_depends:
|
||||
- meson
|
||||
downloads:
|
||||
- url: https://releases.pagure.org/libosinfo/osinfo-db-tools-${BPM_PKG_VERSION}.tar.xz
|
||||
extract_to_bpm_source: true
|
||||
extract_strip_components: 1
|
||||
checksum: f3315f675d18770f25dea8ed04b20b8fc80efb00f60c37ee5e815f9c3776e7f3
|
||||
@@ -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"/COPYING "$BPM_OUTPUT"/usr/share/licenses/osinfo-db-tools/COPYING
|
||||
}
|
||||
Reference in New Issue
Block a user