summaryrefslogtreecommitdiff
path: root/multilib/lib32-celt/PKGBUILD
blob: 8c4124eb74d5324f96611fc1bfcaf9e4f419e408 (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
35
36
37
38
39
40
# Maintainer: Ray Rashif <schiv@archlinux.org>
# Contributor: SpepS <dreamspepser at yahoo dot it>
# Contributor: see .contrib

_realname=celt
pkgname=lib32-$_realname
pkgver=0.11.1
pkgrel=1
pkgdesc='Low-latency audio communication codec (32 bit)'
arch=('x86_64')
url='http://www.celt-codec.org'
license=('BSD')
depends=('lib32-glibc' "$_realname=$pkgver")
makedepends=('gcc-multilib')
options=('!libtool')
source=("http://downloads.xiph.org/releases/$_realname/$_realname-$pkgver.tar.gz")
md5sums=('94fe4acd241da8702c295bcd13a555e6')

build() {
  cd "$srcdir/$_realname-$pkgver"

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

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

package() {
  cd "$srcdir/$_realname-$pkgver"

  make DESTDIR="$pkgdir" install-pkgconfigDATA
  make -C libcelt DESTDIR="$pkgdir" install

  # remove unneeded stuff
  rm -rf "$pkgdir/usr/include"
}

# vim:set ts=2 sw=2 et: