summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9ee4d175276cf185eda4911a2a56371f33eafb8d (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
35
36
37
38
39
40
41
# Maintainer: Chocobo1 <chocobo1 AT archlinux DOT net>

pkgname=opusfile-git
pkgver=0.12.r40.g9d71834
pkgrel=1
pkgdesc="Stand-alone decoder library for .opus streams"
arch=('i686' 'x86_64')
url="https://opus-codec.org/"
license=('BSD')
depends=('glibc' 'libogg' 'openssl' 'opus')
makedepends=('git')
provides=("opusfile=$pkgver")
conflicts=('opusfile')
options=('staticlibs')
source=("git+https://gitlab.xiph.org/xiph/opusfile.git")
sha256sums=('SKIP')


pkgver() {
  cd "opusfile"

  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "opusfile"

  ./autogen.sh
  ./configure \
    --prefix="/usr"
  make
}

package() {
  cd "opusfile"

  make DESTDIR="$pkgdir" install

  install -Dm644 "COPYING" -t "$pkgdir/usr/share/licenses/opusfile"
  rm "$pkgdir/usr/share/doc/opusfile/COPYING"
}