summaryrefslogtreecommitdiff
path: root/extra/opus/PKGBUILD
blob: 46008e22cf2b5d6522a12835f3a7a3dbc230735d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# $Id: PKGBUILD 172981 2012-12-08 01:33:56Z eric $
# Maintainer: Jan de Groot <jgc@archlinux.org>
# Contributor: DrZaius <lou[at]fakeoutdoorsman[dot]com>
# Contributor: pumbur

pkgname=opus
pkgver=1.0.2
pkgrel=1
pkgdesc="Codec designed for interactive speech and audio transmission over the Internet"
arch=('i686' 'x86_64')
url="http://www.opus-codec.org/"
license=('custom')
depends=('glibc')
options=('!libtool')
source=("http://downloads.xiph.org/releases/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('c503ad05a59ddb44deab96204401be03')

build() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  ./configure --prefix=/usr
  make
}

check() {
  cd "${srcdir}/${pkgname}-${pkgver}"
  make check
}

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/"
}