forked from archlinux/svntogit-packages
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgpkg: alsa-plugins 1.2.1-2: Updating maintainer info. Switching to …
…correct license (LGPL2.1). Adding all direct library dependencies to depends/ makedepends/ optdepends. Switching to https upstream for source. Applying (not upstreamed) patch for being able to build plugins with ffmpeg > 4.0 (FS#60586). Also building maemo plugin. Simplifying installation. git-svn-id: file:///srv/repos/svn-packages/svn@373803 eb2447ed-0c53-47e4-bac8-5bc4a241df78
- Loading branch information
Showing
1 changed file
with
31 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1,52 @@ | ||
# Maintainer: Jan Alexander Steffens (heftig) <[email protected]> | ||
# Contributor: David Runge <[email protected]> | ||
# Contributor: Sergej Pupykin <[email protected]> | ||
# Contributor: Daniel Ehlers <[email protected]> | ||
|
||
pkgname=alsa-plugins | ||
pkgver=1.2.1 | ||
pkgrel=1 | ||
pkgdesc="Extra alsa plugins" | ||
arch=(x86_64) | ||
pkgrel=2 | ||
pkgdesc="Additional library plugins" | ||
arch=('x86_64') | ||
url="http://www.alsa-project.org" | ||
license=(GPL) | ||
depends=(alsa-lib) | ||
makedepends=(libpulse jack ffmpeg) | ||
optdepends=('libpulse: PulseAudio plugin' | ||
'jack: Jack plugin' | ||
#'ffmpeg: libavcodec resampling plugin, a52 plugin' | ||
'libsamplerate: libsamplerate resampling plugin' | ||
'speex: libspeexdsp resampling plugin') | ||
source=("ftp://ftp.alsa-project.org/pub/plugins/$pkgname-$pkgver.tar.bz2") | ||
sha256sums=('4d94de7ad41734b8604a652521200bb6554fcf0c2c00fdbd302b1710d76548da') | ||
license=('LGPL2.1') | ||
depends=('glibc' 'libasound.so') | ||
# a52, lavrate plugins not compatible with ffmpeg >= 4.0 | ||
# https://mailman.alsa-project.org/pipermail/alsa-devel/2019-December/159425.html | ||
# https://bugs.archlinux.org/task/60586 | ||
makedepends=('dbus' 'libavcodec.so' 'libavutil.so' 'libjack.so' 'libpulse.so' | ||
'libsamplerate.so' 'libswresample.so' 'speexdsp') | ||
optdepends=('dbus: for maemo plugin' | ||
'libavcodec.so: for pcm_a52 and rate_lavrate plugins' | ||
'libavutil.so: for pcm_a52 and rate_lavrate plugins' | ||
'libjack.so: for pcm_jack plugin' | ||
'libsamplerate.so: for rate_samplerate plugin' | ||
'libpulse.so: for conf_pulse, ctl_pulse and pcm_pulse plugins' | ||
'libswresample.so: for pcm_a52 and rate_lavrate plugins' | ||
'speexdsp: for pcm_speex and rate_speexrate plugins') | ||
source=("https://www.alsa-project.org/files/pub/plugins/$pkgname-$pkgver.tar.bz2" | ||
"${pkgname}-1.2.1-ffmpeg4.patch::https://git.harting.dev/IdleGandalf/alsa-plugins/commit/9cdbbb9874757b6f8fda7fb4ac2e3fc59da65946.patch" | ||
) | ||
sha512sums=('a49ef9290b66855112e301a5fd5a0932f13a50254e164f3340f2b342a36469532ee783beabfe5e95870dbf4cd81ca1e8d0415d94c8c7ee963133fb3c343721de' | ||
'06ff2aa30a55e0d04ac9d1f5a6fa11a6a3c04c3f6722c07ecd7cac57584e142ad6949fd6c856c66435ac5ff5cf910c362e9c72605ca190074764cf3d40a9d64f') | ||
|
||
prepare() { | ||
cd $pkgname-$pkgver | ||
autoreconf -fvi | ||
patch -Np1 -i "../${pkgname}-1.2.1-ffmpeg4.patch" | ||
autoreconf -vfi | ||
} | ||
|
||
build() { | ||
cd $pkgname-$pkgver | ||
./configure --prefix=/usr --sysconfdir=/etc | ||
./configure --prefix=/usr \ | ||
--enable-maemo-plugin \ | ||
--sysconfdir=/etc | ||
make | ||
} | ||
|
||
package() { | ||
cd $pkgname-$pkgver | ||
make DESTDIR="$pkgdir" install | ||
|
||
install -d "$pkgdir/usr/share/doc/$pkgname" | ||
install -m644 doc/README* doc/*.txt "$pkgdir/usr/share/doc/$pkgname/" | ||
install -vDm 644 doc/README* doc/*.txt \ | ||
-t "$pkgdir/usr/share/doc/$pkgname/" | ||
} |