Advertisement
khampf

alsa-plugins-1.1.0-2/PKGBUILD

Mar 8th, 2016
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.56 KB | None | 0 0
  1. # $Id: PKGBUILD 260280 2016-02-27 14:09:19Z alucryd $
  2. # Maintainer: Jan Alexander Steffens (heftig) <jan.steffens@gmail.com>
  3. # Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
  4. # Contributor: Daniel Ehlers <danielehlers@mindeye.net>
  5.  
  6. pkgname=alsa-plugins
  7. pkgver=1.1.0
  8. pkgrel=2
  9. pkgdesc="Extra alsa plugins"
  10. arch=(i686 x86_64)
  11. url="http://www.alsa-project.org"
  12. license=(GPL)
  13. depends=(alsa-lib)
  14. makedepends=(libpulse jack ffmpeg)
  15. optdepends=('libpulse: PulseAudio plugin'
  16.             'jack: Jack plugin'
  17.             'ffmpeg: libavcodec resampling plugin, a52 plugin'
  18.             'libsamplerate: libsamplerate resampling plugin'
  19.             'speex: libspeexdsp resampling plugin')
  20. source=("ftp://ftp.alsa-project.org/pub/plugins/$pkgname-$pkgver.tar.bz2"
  21.         0001-Do-not-use-deprecated-FFmpeg-API.patch)
  22. sha1sums=('1436db17989468d082691b817b338e44ba932c4b'
  23.           '6b032eb20ea1222e78dc862e61e5dad70a8ef2bb')
  24.  
  25. prepare() {
  26.   cd $pkgname-$pkgver
  27.   patch -p1 < ../0001-Do-not-use-deprecated-FFmpeg-API.patch
  28.   wget 'https://bugs.archlinux.org/index.php?getfile=13911' -O 0002-replace-avcodec_alloc_free_frame.patch
  29.   patch -p1 < 0002-replace-avcodec_alloc_free_frame.patch
  30. }
  31.  
  32. build() {
  33.   cd $pkgname-$pkgver
  34.   CFLAGS+=' -DHAVE_STDINT_H' # We have issue similar to this one https://code.google.com/p/cantata/issues/detail?id=627
  35.   ./configure --prefix=/usr
  36.   make
  37. }
  38.  
  39. package() {
  40.   cd $pkgname-$pkgver
  41.   make DESTDIR="$pkgdir" install
  42.  
  43.   install -d "$pkgdir/usr/share/doc/$pkgname"
  44.   install -m644 doc/README* doc/*.txt "$pkgdir/usr/share/doc/$pkgname/"
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement