PKGBUILD 787 Bytes
Newer Older
1 2
_pkgbasename=libsamplerate
pkgname=lib32-$_pkgbasename
Michael's avatar
Michael committed
3
pkgver=0.1.8
4
pkgrel=3
5 6 7 8
pkgdesc="Secret Rabbit Code - aka Sample Rate Converter for audio (32-bit)"
arch=('x86_64')
url="http://www.mega-nerd.com/SRC/index.html"
license=('GPL')
9
depends=('lib32-libsndfile' $_pkgbasename=$pkgver)
10 11 12
makedepedns=('gcc-multilib')
options=('!libtool')
source=(http://www.mega-nerd.com/SRC/libsamplerate-${pkgver}.tar.gz)
Michael's avatar
Michael committed
13
md5sums=('1c7fb25191b4e6e3628d198a66a84f47')
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31

build() {
  cd ${srcdir}/${_pkgbasename}-${pkgver}

  export CC="gcc -m32"
  export CXX="g++ -m32"
  export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"

  ./configure --prefix=/usr --libdir=/usr/lib32
  make
}

package() {
  cd ${srcdir}/${_pkgbasename}-${pkgver}
  make DESTDIR=${pkgdir} install

  rm -rf "${pkgdir}"/usr/{include,share,bin}
}