mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-06 20:07:15 +08:00
35 lines
999 B
Bash
35 lines
999 B
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
# include global config
|
|
source ../_buildscripts/${current_repo}-${_arch}-cfg.conf
|
|
|
|
pkgname=libvorbis
|
|
pkgver=1.3.2
|
|
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')
|
|
md5sums=('c870b9bd5858a0ecb5275c14486d9554') #1.3.2
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
#-march=i686 optimizes too much, strip it out
|
|
CFLAGS=${CFLAGS/-march=$CARCH} ./configure --prefix=/usr --disable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|