From 21e7de93f9e341f3bbf058d9c474c55dc0c5607f Mon Sep 17 00:00:00 2001 From: EnumDev Date: Wed, 29 Jul 2026 10:07:05 +0300 Subject: [PATCH] Initial commit --- .gitignore | 3 +++ check-version.sh | 4 ++++ info.yml | 17 +++++++++++++++++ recipe.sh | 25 +++++++++++++++++++++++++ 4 files changed, 49 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..cd89e29 --- /dev/null +++ b/check-version.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +# Ignore this package +echo "ignore" diff --git a/info.yml b/info.yml new file mode 100644 index 0000000..36d6888 --- /dev/null +++ b/info.yml @@ -0,0 +1,17 @@ +name: libmpcdec +description: MusePack decoding library +version: 1.2.6 +revision: 1 +url: https://musepack.net/ +license: BSD-3-Clause +architecture: any +type: source +depends: + - glibc +make_depends: + - bzip2 +downloads: + - url: https://files.musepack.net/source/libmpcdec-${BPM_PKG_VERSION}.tar.bz2 + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 4bd54929a80850754f27b568d7891e1e3e1b8d2f208d371f27d1fda09e6f12a8 diff --git a/recipe.sh b/recipe.sh new file mode 100644 index 0000000..2c06ff2 --- /dev/null +++ b/recipe.sh @@ -0,0 +1,25 @@ +# 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 check function is executed in the source directory +# This function is used to run tests to verify the package has been compiled correctly +check() { + make check +} + +# 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/libmpcdec/COPYING +}