diff --git a/pkg.info b/pkg.info index 60273a2..0d9db3d 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: alsa-plugins description: Additional ALSA plugins version: 1.2.12 -revision: 2 +revision: 3 url: https://www.alsa-project.org/ license: GPL2-or-later,LGPL2.1-or-later maintainers: @@ -30,3 +30,9 @@ downloads: extract_to: ${BPM_SOURCE} extract_strip_components: 1 checksum: 7bd8a83d304e8e2d86a25895d8dcb0ef0245a8df32e271959cdbdc6af39b66f2 +split_packages: + - name: alsa-plugins + - name: pulseaudio-alsa + depends: + - alsa-plugins + - libpulse diff --git a/source.sh b/source.sh index f45284d..0613bbd 100644 --- a/source.sh +++ b/source.sh @@ -11,9 +11,22 @@ build() { # The package function is executed in the source directory # This function is used to move the compiled files into the output directory -package() { +package_alsa-plugins() { make DESTDIR="$BPM_OUTPUT" install + # Move example file out of /etc + install -d "$BPM_OUTPUT"/usr/share/alsa/alsa.conf.d/ + mv -v "$BPM_OUTPUT"/etc/alsa/conf.d/99-pulseaudio-default.conf.example "$BPM_OUTPUT"/usr/share/alsa/alsa.conf.d/99-pulseaudio-default.conf + # Install package license install -Dm644 "$BPM_SOURCE"/COPYING* -t "$BPM_OUTPUT"/usr/share/licenses/alsa-plugins } + +package_pulseaudio-alsa() { + install -d "$BPM_OUTPUT"/etc/alsa/conf.d + ln -s /usr/share/alsa/alsa.conf.d/99-pulseaudio-default.conf "$BPM_OUTPUT"/etc/alsa/conf.d/99-pulseaudio-default.conf + + # Install package license + install -d "$BPM_OUTPUT"/usr/share/licenses + ln -sf alsa-plugins "$BPM_OUTPUT"/usr/share/licenses/pulseaudio-alsa +}