summaryrefslogtreecommitdiff
path: root/extra/libogg/PKGBUILD
blob: e32bf6c93a32fb1a327af98f5585dc4aa276e6c7 (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
# $Id: PKGBUILD 197322 2013-10-25 02:26:33Z bisson $
# Maintainer:  Tom Gundersen <teg@jklm.no>
# Contributor: John Proctor <jproctor@prium.net>

pkgname=libogg
pkgver=1.3.1
pkgrel=2
pkgdesc="Ogg bitstream and framing library"
arch=('i686' 'x86_64')
url="http://www.xiph.org/ogg/"
license=('BSD')
depends=('glibc')
options=('!libtool')
source=(http://downloads.xiph.org/releases/ogg/$pkgname-$pkgver.tar.xz
        config_types.h)

build() {
  cd "$srcdir/${pkgname}-${pkgver}"
  ./configure --prefix=/usr 
  make
}

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

# install BSD license
  install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"

# Resolve multilib conflict
  if [[ $CARCH == "x86_64" ]]; then
    mv "$pkgdir"/usr/include/ogg/config_types{,-64}.h
    install -m 644 "$srcdir/config_types.h" \
      "${pkgdir}/usr/include/ogg/config_types.h"
  fi
}
md5sums=('ca25d8da0ddfc8c6cbbf78d847a209fe'
         'a4d786b1b1955cb85b64fd16cbbee3f9')