diff --git a/pkg.info b/pkg.info index 140ecad..425f07c 100644 --- a/pkg.info +++ b/pkg.info @@ -1,8 +1,17 @@ name: alsa-lib description: The Advanced Linux Sound Architecture -version: 1.2.14 +version: 1.2.15 +revision: 1 url: https://www.alsa-project.org/wiki/Main_Page license: LGPL2.1-or-later architecture: any -depends: ["glibc"] type: source +depends: + - glibc +make_depends: + - bzip2 +downloads: + - url: https://www.alsa-project.org/files/pub/lib/alsa-lib-${BPM_PKG_VERSION}.tar.bz2 + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 83770841585e766a60c99fd23f8c574c22643ae0cb1f2d20b793c3d84eb95a8d diff --git a/source.sh b/source.sh index b5015c5..b60a7db 100644 --- a/source.sh +++ b/source.sh @@ -2,25 +2,14 @@ # 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://www.alsa-project.org/files/pub/lib/alsa-lib-${BPM_PKG_VERSION}.tar.bz2" -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 -prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" - - cd "$BPM_SOURCE" - # Remove test that fails with GCC-15 - sed -i 's/playmidi1//' test/Makefile.am - autoreconf -fi -} - # The build function is executed in the source directory # This function is used to compile the source code build() { ./configure --prefix=/usr + + # Prevent overlinking due to libtool + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make }