mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 02:24:36 +08:00
29 lines
712 B
Bash
29 lines
712 B
Bash
pkgname=libvorbis
|
|
pkgver=1.3.5
|
|
pkgrel=1
|
|
pkgdesc="Vorbis codec library"
|
|
arch=('x86_64')
|
|
license=('custom')
|
|
url="http://www.xiph.org/ogg/vorbis/"
|
|
depends=('libogg')
|
|
source=("http://downloads.xiph.org/releases/vorbis/${pkgname}-${pkgver}.tar.gz")
|
|
md5sums=('7220e089f3be3412a2317d6fde9e3944')
|
|
|
|
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
|
|
}
|
|
|
|
check() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make -j1 check
|
|
}
|
|
|
|
package() {
|
|
cd "${srcdir}/${pkgname}-${pkgver}"
|
|
make DESTDIR="${pkgdir}" install
|
|
install -Dm644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
|
|
}
|