Skip to content

Commit

Permalink
upgpkg: alsa-ucm-conf 1.2.3-2: Adding missing ucm.conf by simplifying…
Browse files Browse the repository at this point in the history
… installation (FS#67027).

git-svn-id: file:///srv/repos/svn-packages/svn@389438 eb2447ed-0c53-47e4-bac8-5bc4a241df78
  • Loading branch information
dvzrv committed Jun 17, 2020
1 parent e8322f4 commit 3d02bc0
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions alsa-ucm-conf/trunk/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pkgname=alsa-ucm-conf
pkgver=1.2.3
pkgrel=1
pkgrel=2
pkgdesc="ALSA Use Case Manager configuration (and topologies)"
url="https://alsa-project.org/"
arch=('any')
Expand All @@ -14,15 +14,8 @@ b2sums=('d280ebb530c58df706d9b01c169472af8a88ec87735a8c5639981a2fddee31add0d78a2

package() {
cd "${pkgname}-${pkgver}"
for dir in ucm2/*; do
if [ -d "$dir" ] && [[ "$dir" == */codecs ]] || [[ "$dir" == */dsps ]] || [[ "$dir" == */platforms ]]; then
for subdir in "${dir}/"*; do
install -vDm 644 "${subdir}"/*.conf -t "$pkgdir/usr/share/alsa/ucm2/$(basename $dir)/$(basename $subdir)"
done
else
[ -d "$dir" ] && install -vDm 644 "${dir}"/*.conf -t "$pkgdir/usr/share/alsa/ucm2/$(basename $dir)"
fi
done
find ucm2 -type f -iname "*.conf" -exec install -vDm 644 {} "${pkgdir}/usr/share/alsa/"{} \;
find ucm2 -type l -iname "*.conf" -exec cp -dv {} "${pkgdir}/usr/share/alsa/"{} \;
install -vDm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -vDm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -vDm 644 ucm2/README.md -t "$pkgdir/usr/share/doc/$pkgname/ucm2"
Expand Down

0 comments on commit 3d02bc0

Please sign in to comment.