From 1dce59ee6c737ba695560d33b1ff217c8ec193ce Mon Sep 17 00:00:00 2001 From: EnumDev Date: Thu, 30 Jul 2026 11:43:39 +0300 Subject: [PATCH] Initial commit --- .gitignore | 3 +++ check-version.sh | 15 +++++++++++++++ info.yml | 19 +++++++++++++++++++ recipe.sh | 19 +++++++++++++++++++ 4 files changed, 56 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..738c120 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,15 @@ +#!/bin/bash + +# Sourceforge project +REPO="emovix" + +# Get version using best_release.json +VERSION=$(curl -s -L https://sourceforge.net/projects/"$REPO"/best_release.json | jq '.release.url' | grep -o -P 'emovix-([\d.]+).tar.gz') + +# Trim prefix +VERSION=${VERSION//emovix-} + +# Trim suffix +VERSION=${VERSION//.tar.gz} + +echo "$VERSION" diff --git a/info.yml b/info.yml new file mode 100644 index 0000000..e70cbe7 --- /dev/null +++ b/info.yml @@ -0,0 +1,19 @@ +name: emovix +description: Tools to create Movix-CD's +version: 0.9.0 +revision: 1 +url: http://movix.sourceforge.net/ +license: GPL-2.0-or-later +architecture: any +output_architecture: any +type: source +depends: + - cdrtools + - perl + - sh +downloads: + - url: https://sourceforge.net/projects/emovix/files/Source-Code/emovix-${BPM_PKG_VERSION}.tar.gz/download + filepath: emovix-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 96b84843ed80d31df5c07f6ee972362f7a0629a9b181afeb4a99b2127c07ff57 diff --git a/recipe.sh b/recipe.sh new file mode 100644 index 0000000..a69c699 --- /dev/null +++ b/recipe.sh @@ -0,0 +1,19 @@ +# 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 build function is executed in the source directory +# This function is used to compile the source code +build() { + ./configure --prefix=/usr + 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 "$BPM_OUTPUT"/usr/share/licenses/emovix/COPYING +}