summaryrefslogtreecommitdiff
path: root/extra/soundtouch/PKGBUILD
blob: 3036fbba61fb1ede8104e55b93b34d023739e239 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 174146 2013-01-03 05:00:13Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>

pkgname=soundtouch
pkgver=1.7.1
pkgrel=1
pkgdesc="An audio processing library"
arch=('i686' 'x86_64' 'mips64el')
url="http://www.surina.net/soundtouch/"
license=('LGPL')
depends=('gcc-libs')
options=('!libtool')
source=(http://www.surina.net/soundtouch/${pkgname}-${pkgver}.tar.gz)
sha1sums=('8b1a461754853f9c7328571449b7f9b8bd578a89')

build() {
  cd "${srcdir}/${pkgname}"
  sed -i 's/AM_CONFIG_HEADER/AC_CONFIG_HEADER/' configure.ac
  ./bootstrap
  case $CARCH in
    i686)
      ./configure --prefix=/usr --enable-shared
      ;;
    *)
      ./configure --prefix=/usr --enable-shared --with-pic
      ;;
  esac
  make
}

package() {
  cd "${srcdir}/${pkgname}"
  make DESTDIR="${pkgdir}" pkgdocdir=/usr/share/doc/soundtouch install
}