# Maintainer: Chocobo1 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" }