mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 20:57:16 +08:00
30 lines
869 B
Bash
30 lines
869 B
Bash
# Contributions from Arch: https://projects.archlinux.org/svntogit/packages.git/tree/trunk?h=packages/opus
|
|
|
|
pkgname=opus
|
|
pkgver=1.1.2
|
|
pkgrel=1
|
|
pkgdesc="codec designed for interactive speech and audio transmission over the Internet"
|
|
arch=('x86_64')
|
|
url="http://www.opus-codec.org/"
|
|
license=('BSD')
|
|
depends=('glibc')
|
|
source=("http://downloads.xiph.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz")
|
|
md5sums=('1f08a661bc72930187893a07f3741a91')
|
|
|
|
build() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
./configure --prefix=/usr \
|
|
--enable-custom-modes \
|
|
--disable-static \
|
|
--enable-intrinsics \
|
|
--enable-rtcd
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${pkgver}
|
|
make DESTDIR=${pkgdir} install
|
|
install -m755 -d "${pkgdir}/usr/share/licenses/opus"
|
|
install -m644 COPYING "${pkgdir}/usr/share/licenses/opus/"
|
|
}
|