# Maintainer: Yevhenii Kolesnikov # Contributor: willemw # Contributor: josephgbr # Contributor: rabyte _pkgname=libtremor pkgname=$_pkgname-git pkgver=r19674 pkgrel=1 pkgdesc="Integer-only, fully Ogg Vorbis compliant software decoder library" arch=('x86_64') url="http://www.xiph.org/vorbis/" license=('BSD') depends=('libogg') makedepends=('git') provides=($_pkgname) conflicts=("${_pkgname}" "${_pkgname-svn}-svn") options=('!libtool') source=($pkgname::git+https://gitlab.xiph.org/xiph/tremor.git) md5sums=('SKIP') pkgver() { cd $pkgname printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" } prepare() { cd $pkgname # Fix for automake 1.13 #sed -i "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/" configure.in # Patch for error: # ./configure: line 9215: syntax error near unexpected token `,' # ./configure: line 9215: ` XIPH_PATH_OGG(, as_fn_error $? "must have Ogg installed!" "$LINENO" 5)' sed -i "s/\(XIPH_PATH_OGG(, AC_MSG_ERROR(must have Ogg installed!))\)/#\1/" configure.in } build() { cd $pkgname ./autogen.sh --prefix=/usr make } package() { cd $pkgname make DESTDIR="$pkgdir" install install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" }