mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 14:47:15 +08:00
30 lines
906 B
Bash
30 lines
906 B
Bash
# $Id: PKGBUILD 77086 2010-04-10 16:22:41Z andrea $
|
|
# Maintainer: Tobias Kieslich <tobias@archlinux.org>
|
|
# Contributor: dorphell <dorphell@archlinux.org>
|
|
# Contributor: John Proctor <jproctor@prium.net>
|
|
|
|
pkgname=libvorbis
|
|
pkgver=1.3.1
|
|
pkgrel=1
|
|
pkgdesc="Vorbis codec library"
|
|
arch=('i686' 'x86_64')
|
|
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=('016e523fac70bdd786258a9d15fd36e9')
|
|
|
|
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
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make DESTDIR="${pkgdir}" install || return 1
|
|
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE" || return 1
|
|
}
|