From a3060faff5f9f4aed9d877534890ab6585507cfd Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 4 Sep 2026 16:00:01 +0300 Subject: [PATCH] Initial commit --- .gitignore | 3 +++ check-version.sh | 12 ++++++++++++ info.yml | 19 +++++++++++++++++++ recipe.sh | 26 ++++++++++++++++++++++++++ 4 files changed, 60 insertions(+) create mode 100644 .gitignore create mode 100644 check-version.sh create mode 100644 info.yml create mode 100644 recipe.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9d96df7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Ignore BPM archives and signatures +*.bpm +*.bpm.sig diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..e42a66f --- /dev/null +++ b/check-version.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +# Gitea repository +REPO="libburnia/libisofs" + +# Get version from tag name using Gitea Rest API +TAG_NAME=$(curl -s -L https://dev.lovelyhq.com/api/v1/repos/$REPO/tags/ | jq -r '.[0]'.name) + +# Trim prefix +VERSION=${TAG_NAME//release-/} + +echo "$VERSION" diff --git a/info.yml b/info.yml new file mode 100644 index 0000000..f7ac381 --- /dev/null +++ b/info.yml @@ -0,0 +1,19 @@ +name: libisofs +description: Library to pack up hard disk files and directories into a ISO 9660 disk image +version: 1.5.8.pl02 +revision: 1 +url: https://dev.lovelyhq.com/libburnia/libisofs +license: GPL-2.0-or-later +maintainers: + - enumdev@enumerated.dev +architecture: any +type: source +depends: + - acl + - glibc + - zlib +downloads: + - url: https://dev.lovelyhq.com/libburnia/libisofs/archive/release-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: c766fe1303dc349d0eab1c14f15533f5c9c2f5d6035a05baaf788983f9d517c3 diff --git a/recipe.sh b/recipe.sh new file mode 100644 index 0000000..84e61e3 --- /dev/null +++ b/recipe.sh @@ -0,0 +1,26 @@ +# This is the recipe.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" + autoreconf -fi +} + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + ./configure --prefix=/usr --enable-libacl --enable-xattr --disable-static + 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,COPYRIGHT} -t "$BPM_OUTPUT"/usr/share/licenses/libisofs/ +}