blob: 2c7b35a341034c8cba150b667a04cbc4317aa5ea (
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
|
# $Id: PKGBUILD 102123 2010-12-06 01:49:44Z allan $
# Maintainer: Tobias Kieslich <tobias@archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>
pkgname=libvorbis
pkgver=1.3.2
pkgrel=2
pkgdesc="Vorbis codec library"
arch=('i686' 'x86_64' 'mips64el')
license=('custom')
url="http://www.xiph.org/ogg/vorbis/"
depends=('libogg')
options=('!libtool')
source=(http://downloads.xiph.org/releases/vorbis/${pkgname}-${pkgver}.tar.gz)
md5sums=('c870b9bd5858a0ecb5275c14486d9554')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
#-march=i686 optimizes too much, strip it out
if [ "$CARCH" = "mips64el" ]; then
CFLAGS=${CFLAGS/loongson2f/mips3} ./configure --prefix=/usr --disable-static
else
CFLAGS=${CFLAGS/-march=$CARCH} ./configure --prefix=/usr --disable-static
fi
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR="${pkgdir}" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}
|