Update package version to 4.0

This commit is contained in:
2026-09-04 15:56:49 +03:00
parent 1eeb2fe9d2
commit be5ffe0b43
4 changed files with 51 additions and 11 deletions
+7 -8
View File
@@ -2,19 +2,19 @@
# 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
DOWNLOAD="https://downloads.sourceforge.net/lame/lame-${BPM_PKG_VERSION}.tar.gz"
FILENAME="${DOWNLOAD##*/}"
# The prepare function is executed in the root of the temp directory
# This function is used for downloading files and putting them into the correct location
# This function is used for putting downloaded files to the correct location or applying patches
prepare() {
wget "$DOWNLOAD"
tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE"
cd "$BPM_SOURCE"
patch -Np1 -i "$BPM_WORKDIR"/lame-symbols.patch
patch -Np1 -i "$BPM_WORKDIR"/lame-cbr-abr-quality-settings-clamp.patch
autoreconf -fi -I /usr/share/gettext/m4
}
# The build function is executed in the source directory
# This function is used to compile the source code
build() {
export CFLAGS="$CFLAGS -Wno-implicit-function-declaration -Wno-incompatible-pointer-types"
./configure --prefix=/usr --enable-mp3rtp --enable-nasm --disable-static
make
}
@@ -30,6 +30,5 @@ check() {
package() {
make DESTDIR="$BPM_OUTPUT" install
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/lame/LICENSE
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/lame/COPYING
install -Dm644 "$BPM_SOURCE"/{LICENSE,COPYING} -t "$BPM_OUTPUT"/usr/share/licenses/lame
}