Initial commit
This commit is contained in:
@@ -0,0 +1,2 @@
|
||||
# Exclude bpm archives
|
||||
*.bpm
|
||||
@@ -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"
|
||||
@@ -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
|
||||
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user