core/libvorbis/PKGBUILD

30 lines
906 B
Bash
Raw Normal View History

2010-05-17 15:50:50 +08:00
# $Id: PKGBUILD 77086 2010-04-10 16:22:41Z andrea $
# Maintainer: Tobias Kieslich <tobias@archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>
2010-03-14 23:48:48 +08:00
# Contributor: John Proctor <jproctor@prium.net>
pkgname=libvorbis
2010-05-17 15:50:50 +08:00
pkgver=1.3.1
2010-03-14 23:48:48 +08:00
pkgrel=1
pkgdesc="Vorbis codec library"
2010-05-17 15:50:50 +08:00
arch=('i686' 'x86_64')
2010-03-14 23:48:48 +08:00
license=('custom')
url="http://www.xiph.org/ogg/vorbis/"
2010-05-17 15:50:50 +08:00
depends=('libogg')
options=('!libtool')
2010-03-14 23:48:48 +08:00
source=(http://downloads.xiph.org/releases/vorbis/${pkgname}-${pkgver}.tar.gz)
2010-05-17 15:50:50 +08:00
md5sums=('016e523fac70bdd786258a9d15fd36e9')
2010-03-14 23:48:48 +08:00
build() {
cd ${srcdir}/${pkgname}-${pkgver}
#-march=i686 optimizes too much, strip it out
CFLAGS=${CFLAGS/-march=$CARCH} ./configure --prefix=/usr --disable-static || return 1
make || return 1
2010-05-17 15:50:50 +08:00
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
2010-03-14 23:48:48 +08:00
make DESTDIR="${pkgdir}" install || return 1
2010-05-17 15:50:50 +08:00
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" || return 1
2010-03-14 23:48:48 +08:00
}