mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-04 02:07:14 +08:00
31 lines
814 B
Bash
31 lines
814 B
Bash
#
|
|
# Platform Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer abveritas@chakra-project.org
|
|
# maintainer BrLi <rainman59118@gmail.com>
|
|
|
|
pkgname=libvorbis
|
|
pkgver=1.3.3
|
|
pkgrel=8
|
|
pkgdesc="Vorbis codec library"
|
|
arch=('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=('6b1a36f0d72332fae5130688e65efe1f')
|
|
|
|
build() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
#-march=i686 optimizes too much, strip it out
|
|
CFLAGS=${CFLAGS/-march=$CARCH} LIBS+="-lm" ./configure --prefix=/usr --disable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|