Date: Saturday, March 18, 2023 @ 17:50:21
Author: dvzrv
Revision: 471511
upgpkg: alsa-firmware 1.2.4-3: Rebuild to re-sign package.
Remove unnecessary quotes and curly braces.
Move configure options to local bash array for easier handling.
Modified:
alsa-firmware/trunk/PKGBUILD
----------+
PKGBUILD | 36 +++++++++++++++++++-----------------
1 file changed, 19 insertions(+), 17 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2023-03-18 16:50:59 UTC (rev 471510)
+++ PKGBUILD 2023-03-18 17:50:21 UTC (rev 471511)
@@ -7,12 +7,12 @@
pkgname=alsa-firmware
pkgver=1.2.4
-pkgrel=2
+pkgrel=3
pkgdesc="Firmware binaries for loader programs in alsa-tools and hotplug
firmware loader"
-arch=('any')
+arch=(any)
url="https://alsa-project.org/"
-license=('BSD' 'GPL2' 'LGPL2.1' 'custom')
-source=("https://www.alsa-project.org/files/pub/firmware/${pkgname}-${pkgver}.tar.bz2"{,.sig})
+license=(BSD GPL2 LGPL2.1 custom)
+source=(https://www.alsa-project.org/files/pub/firmware/$pkgname-$pkgver.tar.bz2{,.sig})
options=(!strip)
sha512sums=('041f54744fe30fa94781968c89c77ab9073fc9a828014d07a0f7e0f11c4185ace6846d5d2a313fcca6e9cda6e4837fd6f62e883b0fdb0a4e30a8c18ba7b2e05d'
'SKIP')
@@ -21,27 +21,29 @@
validpgpkeys=('F04DF50737AC1A884C4B3D718380596DA6E59C91') # ALSA Release Team
(Package Signing Key v1) <[email protected]>
prepare() {
- cd "$pkgname-$pkgver"
- autoreconf -vfi
+ cd $pkgname-$pkgver
+ autoreconf -fiv
}
build() {
- cd "$pkgname-$pkgver"
- ./configure --prefix=/usr \
- --enable-buildfw \
- --with-hotplug-dir=/usr/lib/firmware
+ local configure_options=(
+ --prefix=/usr
+ --enable-buildfw
+ --with-hotplug-dir=/usr/lib/firmware
+ )
+
+ cd $pkgname-$pkgver
+ ./configure "${configure_options[@]}"
make
}
package() {
- cd "$pkgname-$pkgver"
+ cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
# remove files which conflict with linux-firmware
- rm -rf "${pkgdir}"/usr/lib/firmware/{ct{efx,speq}.bin,ess,korg,sb16,yamaha}
+ rm -rf "$pkgdir"/usr/lib/firmware/{ct{efx,speq}.bin,ess,korg,sb16,yamaha}
# remove broken symlinks (broken upstream)
- rm -rf "${pkgdir}"/usr/lib/firmware/turtlebeach
- install -vDm 644 aica/license.txt \
- -t "${pkgdir}/usr/share/licenses/${pkgname}/aica/"
- install -vDm 644 ca0132/creative.txt \
- -t "${pkgdir}/usr/share/licenses/${pkgname}/ca0132/"
+ rm -rf "$pkgdir"/usr/lib/firmware/turtlebeach
+ install -vDm 644 aica/license.txt -t
"$pkgdir/usr/share/licenses/$pkgname/aica/"
+ install -vDm 644 ca0132/creative.txt -t
"$pkgdir/usr/share/licenses/$pkgname/ca0132/"
}