PKGBUILDs/extra/libvorbis/PKGBUILD

35 lines
989 B
Bash
Raw Normal View History

2011-06-15 02:22:07 +00:00
# Maintainer: Tobias Kieslich <tobias@archlinux.org>
# Contributor: dorphell <dorphell@archlinux.org>
# Contributor: John Proctor <jproctor@prium.net>
2012-02-08 15:27:50 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
2011-06-15 02:22:07 +00:00
# - remove Arch's CFLAGS replacement, doesn't work with our flags
plugrel=1
pkgname=libvorbis
2012-02-08 15:27:50 +00:00
pkgver=1.3.3
2011-06-15 02:22:07 +00:00
pkgrel=1
pkgdesc="Vorbis codec library"
arch=('i686' 'x86_64')
2012-02-08 15:27:50 +00:00
license=('BSD')
url="http://www.xiph.org/vorbis/"
2011-06-15 02:22:07 +00:00
depends=('libogg')
options=('!libtool')
source=(http://downloads.xiph.org/releases/vorbis/${pkgname}-${pkgver}.tar.gz)
2012-02-08 15:27:50 +00:00
md5sums=('6b1a36f0d72332fae5130688e65efe1f')
2011-06-15 02:22:07 +00:00
build() {
2012-02-08 15:27:50 +00:00
cd "${srcdir}/${pkgname}-${pkgver}"
2011-06-15 02:22:07 +00:00
#-march=i686 optimizes too much, strip it out
#CFLAGS=${CFLAGS/-march=$CARCH} ./configure --prefix=/usr --disable-static
2012-02-08 15:27:50 +00:00
LIBS+="-lm" ./configure --prefix=/usr --disable-static
2011-06-15 02:22:07 +00:00
make
}
package() {
2012-02-08 15:27:50 +00:00
cd "${srcdir}/${pkgname}-${pkgver}"
2011-06-15 02:22:07 +00:00
make DESTDIR="${pkgdir}" install
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
}