archrelease: copy trunk to community-any
[ArchLinux/community.git] / libopusenc / trunk / PKGBUILD
blob03d5f6d061692f3704a4c70ce01451bf1dd0ea78
1 # Maintainer: Kyle Keen <keenerd@gmail.com>
2 # Contributor: Chocobo1 <chocobo1 AT archlinux DOT net>
4 pkgname=libopusenc
5 pkgver=0.2.1
6 pkgrel=3
7 pkgdesc="High-level API for encoding .opus files"
8 arch=('x86_64')
9 url="https://opus-codec.org/"
10 license=('BSD')
11 depends=('glibc' 'opus')
12 options=('staticlibs')
13 source=("https://archive.mozilla.org/pub/opus/libopusenc-$pkgver.tar.gz")
14 #source=("https://ftp.osuosl.org/pub/xiph/releases/opus/libopusenc-$pkgver.tar.gz")
15 sha256sums=('8298db61a8d3d63e41c1a80705baa8ce9ff3f50452ea7ec1c19a564fe106cbb9')
17 build() {
18   cd "$pkgname-$pkgver"
20   CFLAGS+=" -ffat-lto-objects" \
21   ./configure --prefix="/usr"
22   make
25 package() {
26   cd "$pkgname-$pkgver"
28   make DESTDIR="$pkgdir" install
30   install -Dm644 "COPYING" "$pkgdir/usr/share/licenses/libopusenc/COPYING"
31   rm -rf "$pkgdir/usr/share/doc"