1 # Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
2 # Contributor: Jan de Groot <jgc@archlinux.org>
3 # Contributor: DrZaius <lou[at]fakeoutdoorsman[dot]com>
13 pkgdesc="Totally open, royalty-free, highly versatile audio codec"
14 url="https://www.opus-codec.org/"
25 _commit=82ac57d9f1aaf575800cf17373348e45b7ce6c0d # tags/v1.4^0
26 source=("git+https://github.com/xiph/opus#commit=$_commit")
31 git describe --tags | sed 's/^v//;s/[^-]*-g/r&/;s/-/+/g'
44 arch-meson opus build "${meson_options[@]}"
45 meson compile -C build
49 meson test -C build --print-errorlogs
55 meson install -C build --destdir "$pkgdir"
56 install -Dt "$pkgdir/usr/share/aclocal" -m644 opus/opus.m4
58 install -Dt "$pkgdir/usr/share/licenses/$pkgname" -m644 opus/COPYING
60 mkdir -p doc/usr/share
61 mv {"$pkgdir",doc}/usr/share/doc
65 pkgdesc+=" (documentation)"
71 # vim:set sw=2 sts=-1 et: