commit e2be38446b537c07cd985f783d769f3fc91ee580 Author: EnumDev Date: Wed Nov 12 13:58:26 2025 +0200 Initial commit diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..3e58e5f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +# Exclude bpm archives +*.bpm \ No newline at end of file diff --git a/check-version.sh b/check-version.sh new file mode 100644 index 0000000..b787f9e --- /dev/null +++ b/check-version.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Sourceforge project +REPO="opencore-amr" + +# Get version using best_release.json +VERSION=$(curl -s -L https://sourceforge.net/projects/"$REPO"/best_release.json | jq '.platform_releases.linux.filename' | cut -d'/' -f3 | grep -o -E '[0-9]{1,}\.[0-9]{1,}\.[0-9]{1,}') + +echo "$VERSION" diff --git a/pkg.info b/pkg.info new file mode 100644 index 0000000..6671f5b --- /dev/null +++ b/pkg.info @@ -0,0 +1,15 @@ +name: libfdk-aac +description: Fraunhofer FDK AAC codec library +version: 2.0.3 +revision: 1 +url: https://sourceforge.net/projects/opencore-amr/ +license: custom +architecture: any +type: source +depends: + - glibc +downloads: + - url: https://downloads.sourceforge.net/project/opencore-amr/fdk-aac/fdk-aac-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 829b6b89eef382409cda6857fd82af84fabb63417b08ede9ea7a553f811cb79e diff --git a/source.sh b/source.sh new file mode 100644 index 0000000..69f21d5 --- /dev/null +++ b/source.sh @@ -0,0 +1,31 @@ +# 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 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" +} + +# The build function is executed in the source directory +# This function is used to compile the source code +build() { + ./configure --prefix=/usr --disable-static + 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"/NOTICE "$BPM_OUTPUT"/usr/share/licenses/libfdk-aac/NOTICE +}